]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Protect req_resource_num update
authorMustafa Ismail <mustafa.ismail@intel.com>
Mon, 22 Aug 2016 23:15:58 +0000 (18:15 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 23 Aug 2016 16:40:20 +0000 (12:40 -0400)
commit309040252dfc9a68c4bd33550c6b1df74c2390f2
tree60bec147d6794293d87f95558903181818982088
parentc240404bff9d8e361708916a00e87fa3fe5490f2
i40iw: Protect req_resource_num update

In i40iw_alloc_resource(), ensure that the update to
req_resource_num is protected by the lock.

Fixes: 2a344360ec7f ("i40iw: add main, hdr, status")
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>
drivers/infiniband/hw/i40iw/i40iw.h