]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: sb105x: move dereference under IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Jan 2013 07:10:59 +0000 (10:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 00:43:20 +0000 (16:43 -0800)
commit8441bf5e063e03e5d307ffb32fd5f77e81c0d397
tree0171af80aa59c11eebf66ff43cbec41fac84aae7
parent2fbedf67ed3ad2ee08b96cbc3c56c7d81db14de9
staging: sb105x: move dereference under IS_ERR() check

Avoid dereverencing the ERR_PTR() by shifting the dereference down a
couple lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sb105x/sb_pci_mp.c