]> 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>
Mon, 24 Oct 2011 15:00:09 +0000 (02:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 08:41:47 +0000 (19:41 +1100)
commit5e940e3fb854fb256f6fbcd9820f1ffaa11985e6
treeac53100ec3197dbdc1fd9f214f607d44dfb2745f
parent4ec941598424ac51020810a88a876f5f355f11ec
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