]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: possible memory leak in xattr.
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Fri, 2 Mar 2012 06:17:26 +0000 (11:47 +0530)
committerSteve French <sfrench@us.ibm.com>
Wed, 7 Mar 2012 03:46:53 +0000 (21:46 -0600)
commit832679933ed3625f53be58be8578a44a16221ddb
treec5d7c9cfd330f2c950680b0c2febdf2c19431933
parent72baa4f5d1057feb68907b356d08238d6641228f
cifs: possible memory leak in xattr.

Memory is allocated irrespective of whether CIFS_ACL is configured
or not. But free is happenning only if CIFS_ACL is set. This is a
possible memory leak scenario.

Fix is:
Allocate and free memory only if CIFS_ACL is configured.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/xattr.c