]> git.baikalelectronics.ru Git - kernel.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)
commitaaa2ef312c9d4a60b305574f25d891f3cb43b278
treedb3fedfc7ee859f117e8fa65cc42260e6558d0d9
parent72127bf2e02ef0d5e238e2ca06eac084a9529126
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