V4L/DVB: dvb-usb: gp8psk, fix potential null derefernce
authorJiri Slaby <jslaby@suse.cz>
Tue, 27 Apr 2010 21:11:20 +0000 (18:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:33 +0000 (12:58 -0300)
commit205161ed03b53c467dd669a340ea704ce0fb6f9e
tree790f1ccdaea41d0484528cb05b6efd2d05efb7a9
parent0de8e3533e08745616a30bdb3fa5106c85083e51
V4L/DVB: dvb-usb: gp8psk, fix potential null derefernce

Stanse found that in gp8psk_load_bcm4500fw there is missing a check for
return value of kmalloc. Add one and bail out appropriatelly.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/gp8psk.c