From: Alexandre Bounine Date: Wed, 2 Nov 2011 20:39:11 +0000 (-0700) Subject: RapidIO: fix potential null deref in rio_setup_device() X-Git-Tag: v3.2-rc1~82^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166c050bda80bb5dd627a287b6efcdfb68d172b4;p=pandora-kernel.git RapidIO: fix potential null deref in rio_setup_device() The "goto cleanup" path can deference "rswitch" when it is NULL. Reported-by: Dan Carpenter Signed-off-by: Alexandre Bounine Cc: Dan Carpenter Cc: Kumar Gala Cc: Matt Porter Cc: Chul Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed