Skip to content
Snippets Groups Projects
Commit 2ab74cd2 authored by Liu Bo's avatar Liu Bo Committed by Jens Axboe
Browse files

blk-throttle: fix potential NULL pointer dereference in throtl_select_dispatch


tg in throtl_select_dispatch is used first and then do check. Since tg
may be NULL, it has potential NULL pointer dereference risk. So fix
it.

Signed-off-by: default avatarJoseph Qi <joseph.qi@linux.alibaba.com>
Signed-off-by: default avatarLiu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a6088845
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment