]> git.baikalelectronics.ru Git - kernel.git/commit
net: hwbm: Fix unbalanced spinlock in error case
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 24 May 2016 16:03:26 +0000 (18:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:35:09 +0000 (12:35 -0700)
commitaf981f8d851f263c21a23900efc4cba635e0f27c
tree2505b959841980d5794823c8a9fb4241a5be304a
parente3e4793ba299e96ac397387b362ceb3dca4cc35d
net: hwbm: Fix unbalanced spinlock in error case

When hwbm_pool_add exited in error the spinlock was not released. This
patch fixes this issue.

Fixes: 3a5a718a35de ("net: add a hardware buffer management helper API")
Reported-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/hwbm.c