forked from rubenslte/android_kernel_samsung_msm8226
To prevent protential risk of memory leak caused by closing socket with out untag it from qtaguid module, the qtaguid module now do not hold any socket file reference count. Instead, it will increase the sk_refcnt of the sk struct to prevent a reuse of the socket pointer. And when a socket is released. It will delete the tag if the socket is previously tagged so no more resources is held by xt_qtaguid moudle. A flag is added to the untag process to prevent possible kernel crash caused by fail to delete corresponding socket_tag_entry list. Issue: FP2P-307 Test: run cts -m CtsNativeNetTestCases Change-Id: I163bb06bdbf6aa63503f1f14ec1dd177a72b9df3 (cherry picked from commit b5428181f94bd0d1ff5d321bd58413bdb61f8df4)