staging: rts_pstor: potential NULL dereference
authorVasiliy Kulikov <segoon@openwall.com>
Wed, 2 Feb 2011 18:29:31 +0000 (21:29 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 21:04:23 +0000 (13:04 -0800)
commit37af07d19a53924a70ae42faebf968c04a631c8c
tree73b4d0051977a44c4d7b1ef7810c5198d4f08cd7
parent4b906e58a1f0a29ce1da4ed832cc6f17e5889772
staging: rts_pstor: potential NULL dereference

pci_get_bus_and_slot() may return NULL, but the caller checks
wrong variable.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/rtsx.c