]> git.baikalelectronics.ru Git - kernel.git/commit
drivers:misc: ti-st: fix potential NULL pointer dereference in st_register()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 02:44:47 +0000 (10:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:52:29 +0000 (15:52 -0700)
commit2433d01bc6b4005d7189e5e119023bc8bca1bbd0
tree0374f2993b77ded80f3710e94b285feafa883ef4
parent6c20c19ddcf41f65442eb4913edb5bcdd68596fb
drivers:misc: ti-st: fix potential NULL pointer dereference in st_register()

Remove the pointless NULL dereference above the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_core.c