OSDN Git Service

netfilter: xt_qtaguid: Fix sockfd_put() call within spinlock
authorJP Abgrall <jpa@google.com>
Thu, 18 Aug 2011 22:05:47 +0000 (15:05 -0700)
committerJP Abgrall <jpa@google.com>
Mon, 22 Aug 2011 18:11:15 +0000 (11:11 -0700)
commita3c4bb594cab871d2e116bd0aae9ebca0f779269
treecb909ff8112ba20742d81ad606a1974582570ec0
parent514c383a5949d3abae9e83f218f77ffc67d0d513
netfilter: xt_qtaguid: Fix sockfd_put() call within spinlock

(backport from common-3.0
  commit: 97aca38ddd3421bb7f13bf1c41566b23429906ae)

sockfd_put() risks sleeping.
So when doing a delete ctrl command, defer the sockfd_put() and
kfree() to outside of the spinlock.

Change-Id: I5f8ab51d05888d885b2fbb035f61efa5b7abb88a
Signed-off-by: JP Abgrall <jpa@google.com>
net/netfilter/xt_qtaguid.c