diff options
author | Shiraz Saleem | 2016-08-22 18:16:37 -0500 |
---|---|---|
committer | Doug Ledford | 2016-08-24 11:21:51 -0400 |
commit | 5dfd5e5e3bc68ab3912acc712c8180942094fc69 (patch) | |
tree | 259952755056eeba2376710d697a848a387e8dcb /Documentation/usb | |
parent | cff069b78c21559f427c3fefe9ef3294e3dec094 (diff) |
i40iw: Add missing NULL check for MPA private data
Add NULL check for pdata and pdata->addr before the memcpy in
i40iw_form_cm_frame(). This fixes a NULL pointer de-reference
which occurs when the MPA private data pointer is NULL. Also
only copy pdata->size bytes in the memcpy to prevent reading
past the length of the private data buffer provided by upper layer.
Fixes: f27b4746f378 ("i40iw: add connection management code")
Reported-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Documentation/usb')
0 files changed, 0 insertions, 0 deletions