]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix potential crash issue due to io_get_req failure
authorJackie Liu <liuyun01@kylinos.cn>
Wed, 18 Sep 2019 09:25:52 +0000 (17:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Sep 2019 17:20:04 +0000 (11:20 -0600)
commiteaf71f81c42973d6f8133e950c074b107142dece
treeec938706fa10ecd8efec74e15776257e0821b712
parent7c080a82c072a42bb5b6b49acea25285b46174a6
io_uring: fix potential crash issue due to io_get_req failure

Sometimes io_get_req will return a NUL, then we need to do the
correct error handling, otherwise it will cause the kernel null
pointer exception.

Fixes: 11e836fc4d95 ("io_uring: add support for link with drain")
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c