aboutsummaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-04-20 15:07:18 +0100
committerJens Axboe <axboe@fb.com>2017-04-20 08:19:23 -0600
commit8c9ff1addad515037abc1b14684f9d6fd480c247 (patch)
tree9c4727a695f1f8f0e92fa5c94de94b1478fd318a /block/bfq-iosched.h
parentligtnvm: fix double blk_put_queue on same queue (diff)
downloadlinux-dev-8c9ff1addad515037abc1b14684f9d6fd480c247.tar.xz
linux-dev-8c9ff1addad515037abc1b14684f9d6fd480c247.zip
block, bfq: don't dereference bic before null checking it
The call to bfq_check_ioprio_change will dereference bic, however, the null check for bic is after this call. Move the the null check on bic to before the call to avoid any potential null pointer dereference issues. Detected by CoverityScan, CID#1430138 ("Dereference before null check") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/bfq-iosched.h')
0 files changed, 0 insertions, 0 deletions