Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1542024

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

From Doug Ledford <dledford@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr dereference
Date 2016-12-14 17:30 +0100
Message-ID <sOkBj-cI-1@gated-at.bofh.it> (permalink)
References <stHCy-5H5-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 10/18/2016 2:39 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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@canonical.com>

Applied, thanks.

-- 
Doug Ledford <dledford@redhat.com>
    GPG Key ID: 0E572FDD

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] qedr: return -EINVAL if pd is null and avoid null ptr  dereference Doug Ledford <dledford@redhat.com> - 2016-12-14 17:30 +0100

csiph-web