diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2011-11-02 13:39:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 16:07:01 -0700 |
commit | 166c050bda80bb5dd627a287b6efcdfb68d172b4 (patch) | |
tree | 840b302ae67f40a735f9612ad5243d5f012aa57a /samples/kfifo | |
parent | 48618fb4e522d9d02e217ac05f52749545c1af20 (diff) | |
download | op-kernel-dev-166c050bda80bb5dd627a287b6efcdfb68d172b4.zip op-kernel-dev-166c050bda80bb5dd627a287b6efcdfb68d172b4.tar.gz |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/kfifo')
0 files changed, 0 insertions, 0 deletions