]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RapidIO: fix potential null deref in rio_setup_device()
authorAlexandre Bounine <alexandre.bounine@idt.com>
Wed, 28 Sep 2011 00:51:02 +0000 (10:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:48 +0000 (14:53 +1000)
commit0235cf10db23f6972df1c8e05c5d55413fa45a08
tree939ffa5b8bb0230cff912b03929cf59806ca3aa0
parent72f83271197bdbe09b607b6551be861305e94896
RapidIO: fix potential null deref in rio_setup_device()

The "goto cleanup" path can deference "rswitch" when it is NULL.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Chul Kim <chul.kim@idt.com>
Signed-off-by: Andrew Morton <>
drivers/rapidio/rio-scan.c