netfilter: xt_qtaguid: fix crash on non-full sks
authorHuang, Tao <huangtao@rock-chips.com>
Wed, 27 Apr 2016 10:34:13 +0000 (18:34 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 27 Apr 2016 10:43:41 +0000 (18:43 +0800)
commit1b96a26c65104ee06eaa46dc23bbe22ebe3bf7d0
tree8fa3d0d7ca8b100f845cff322969d65996f907cb
parent282266255aef7f05adb1cd41f5c8f91e11ea6b76
netfilter: xt_qtaguid: fix crash on non-full sks

If sock is request_sock then kernel will crash. So use
skb_to_full_sk() and sk_fullsock() helper to make sure
we get full sock.

Change-Id: Iefd548e0591055b1a8031f0835c4dca7b9d42b61
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
net/netfilter/xt_qtaguid.c