Re: [PATCH][-next] block, bfq: don't dereference bic before null checking it
From: Jens Axboe
Date: Thu Apr 20 2017 - 10:20:17 EST
On Thu, Apr 20 2017, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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.
Thanks, added.
--
Jens Axboe