]> asedeno.scripts.mit.edu Git - linux.git/commit
esp: Fix misplaced spin_unlock_bh.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 24 Apr 2017 05:33:56 +0000 (07:33 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 24 Apr 2017 05:56:31 +0000 (07:56 +0200)
commite892d2d40445a14a19530a2be8c489b87bcd7c19
treeb5f7838680af98f0905bab60a39cad722e63e61b
parente2989ee9746b3f2e78d1a39bbc402d884e8b8bf1
esp: Fix misplaced spin_unlock_bh.

A recent commit moved esp_alloc_tmp() out of a lock
protected region, but forgot to remove the unlock from
the error path. This patch removes the forgotten unlock.
While at it, remove some unneeded error assignments too.

Fixes: fca11ebde3f0 ("esp4: Reorganize esp_output")
Fixes: 383d0350f2cc ("esp6: Reorganize esp_output")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4.c
net/ipv6/esp6.c