Web lists-archives.com

Re: [PATCH][-next] block, bfq: don't dereference bic before null checking it

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