]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/block/swim3.c: fix null pointer dereference
authorCong Ding <dinggnu@gmail.com>
Wed, 20 Feb 2013 02:13:52 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:16 +0000 (16:52 +1100)
commitc8e2f2f6dd7668f41fcd77ac1d31cd21a8a6fdfe
treed91542b05440cac59568eb80ff014acc0782c67d
parent2fd053b40ff8e64cdb22a06830f99eb4efec53f0
drivers/block/swim3.c: fix null pointer dereference

The use of pointer fs should be after the null check.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/swim3.c