]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
dsp_fbexport: use kzalloc
authorArnaud Patard <Rtp>
Thu, 9 Nov 2006 23:52:34 +0000 (01:52 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 9 Nov 2006 23:52:34 +0000 (01:52 +0200)
commitbecd02ee30408a66d6d2e833ec3efd542b608a56
tree7e80afb1f20616da0d989c39d5c899885b8fca7c
parentd5c772f519236d8683b460e5da37f4a943ca4aae
dsp_fbexport: use kzalloc

The dsp_export function calls omapfb_register_client() right after
allocating the memory with kmalloc.
A commit added to omapfb_register_client() a check on the value of
plane_idx in the notified block structure. As we're only using kmalloc,
you may end-up comparing garbage/random values (It even leads to a oops
on my n770).

Using kzalloc() fixes the issue.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dsp/dsp_mem.c