]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40iw: Add NULL check for puda buffer
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 12 Jul 2016 16:48:46 +0000 (11:48 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Aug 2016 18:17:38 +0000 (14:17 -0400)
commitda5c138185006a6e92ea804046543e2ed1401229
treedb3fedfc7ee859f117e8fa65cc42260e6558d0d9
parent8c1ea86d44d35ff8d3a01b62e2505c9d7e48ac5a
i40iw: Add NULL check for puda buffer

i40iw_puda_get_listbuf may return NULL if the list is empty.
Add NULL check prior to accessing the pointer.

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>
drivers/infiniband/hw/i40iw/i40iw_puda.c