]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dgrp: check for NULL pointer in (un)register_proc_table
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 9 Oct 2012 18:18:19 +0000 (14:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Oct 2012 21:10:10 +0000 (14:10 -0700)
commitb91c639d03533be2a537d995248036e75ec4c910
tree62743423b33605d87076851693cf1143c89a3ba6
parentf6e4aba20e3f44cba4ef0a47d960f55b0ee013fe
staging: dgrp: check for NULL pointer in (un)register_proc_table

register_proc_table and unregister_proc_table didn't deal with the
possibility that the *table pointer could be NULL.  Check for this and
return if table is NULL.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_specproc.c