]> 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, 5 Oct 2011 00:43:56 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Oct 2011 06:50:00 +0000 (17:50 +1100)
commit660cfcb9b89c1ccdcb32fe0ff15c97c4a226d8c0
treed029f52fd71fadabb7b4998e9b689a2d5e3a099b
parent6d915758c759010bbb89a752c371934761b6ee6c
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 <akpm@linux-foundation.org>
drivers/rapidio/rio-scan.c