mtip32xx: fix potential NULL pointer dereference in mtip_timeout_function()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 8 Nov 2012 09:35:38 +0000 (17:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Nov 2012 13:32:55 +0000 (14:32 +0100)
commit298d80152c895859bd128552db7a5b228e8a23f7
treeeb373edf3854f3c21b08aae0cf8e5f25a5553971
parent7c5d62388e88729775b10a1748f2810e413f1e51
mtip32xx: fix potential NULL pointer dereference in mtip_timeout_function()

The dereference to port should be moved below the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c