All of lore.kernel.org
 help / color / mirror / Atom feed
* Unchecked memory allocations in Intel driver
@ 2011-07-04 12:27 Alan Cox
  2011-07-04 18:18 ` Keith Packard
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2011-07-04 12:27 UTC (permalink / raw)
  To: dri-devel, keithp

Found this going over intel_bios.c and cross comparing it with the
Intel/IMG driver intel_bios.c

        temp_mode = kzalloc(sizeof(*temp_mode), GFP_KERNEL);
        temp_downclock = panel_fixed_mode->clock;
        /*
         * enumerate the LVDS panel timing info entry in VBT to check
        whether
         * the LVDS downclock is found.
         */
        for (i = 0; i < 16; i++) {
                entry = (struct bdb_lvds_lfp_data_entry *)
                        ((uint8_t *)lvds_lfp_data->data + (lfp_data_size
        * i)); dvo_timing = (struct lvds_dvo_timing *)
                        ((unsigned char *)entry + dvo_timing_offset);
 
                fill_detail_timing_data(temp_mode, dvo_timing);


The one for IMG devices (GMA500 etc) has an additional unchecked kmalloc
which the i915 driver has fixed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-13 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 12:27 Unchecked memory allocations in Intel driver Alan Cox
2011-07-04 18:18 ` Keith Packard
2011-07-04 19:55   ` Alan Cox
2011-07-05  8:55     ` [PATCH] drm/i915/bios: Avoid temporary allocation whilst searching for downclock Chris Wilson
2011-07-13 18:13       ` Keith Packard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.