mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-30 17:50:17 +01:00
i915: use kzalloc to allocate intel_output for lvds
Better to initialize all the struct fields to 0. Also more consistent with other output init routines.
This commit is contained in:
parent
52183fb05b
commit
e90716671d
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ void intel_lvds_init(struct drm_device *dev)
|
|||
u32 lvds;
|
||||
int pipe;
|
||||
|
||||
intel_output = kmalloc(sizeof(struct intel_output), GFP_KERNEL);
|
||||
intel_output = kzalloc(sizeof(struct intel_output), GFP_KERNEL);
|
||||
if (!intel_output) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue