]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0c6f3e27e122976c93c34c08912fc4ae3659d20
treeeb373edf3854f3c21b08aae0cf8e5f25a5553971
parent53631329b4f709113c9764722889eb573feefe34
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