]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix locking bug in netif_set_xps_queue
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 22 Feb 2013 06:38:44 +0000 (06:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2013 20:10:19 +0000 (15:10 -0500)
commitd469b1bd773d8969622311b4163e9b8e745dd2f5
treed84023f594ef132cb3823080bf9a8f6a406b92b6
parentd0bdfa23fa97380d14149751363fe19470c31609
net: Fix locking bug in netif_set_xps_queue

Smatch found a locking bug in netif_set_xps_queue in which we were not
releasing the lock in the case of an allocation failure.

This change corrects that so that we release the xps_map_mutex before
returning -ENOMEM in the case of an allocation failure.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c