]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/staging/tidspbridge/pmgr/dspapi.c
staging: ti dspbridge: avoid possible NULL dereference panic
authorErnesto Ramos <ernesto@ti.com>
Wed, 28 Jul 2010 16:50:36 +0000 (11:50 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 Aug 2010 00:11:00 +0000 (17:11 -0700)
commit35f338e4f2fcd2614f6fdff33f38920cf9434f86
tree4f2a513c4861a32e510f47f56905a91f3b5de933
parent019415ce5e00bcc0287f2ea88042b9fb685cdbcf
staging: ti dspbridge: avoid possible NULL dereference panic

When dsp_notifications array is received from user,
dspbridge verifies the array has valid pointers
and dsp_notification structures. However, these
structures contain pointers that need to be
checked for valid handles.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/pmgr/dspapi.c