Re: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference

From: Doug Ledford
Date: Wed Dec 14 2016 - 11:25:27 EST


On 10/18/2016 2:39 PM, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently, if pd is null then we hit a null pointer derference
> on accessing pd->pd_id. Instead of just printing an error message
> we should also return -EINVAL immediately.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thanks.

--
Doug Ledford <dledford@xxxxxxxxxx>
GPG Key ID: 0E572FDD

Attachment: signature.asc
Description: OpenPGP digital signature