Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
SELinux: fix memory leakage in /security/selinux/hooks.c

+2 -1
+2 -1
security/selinux/hooks.c
··· 1285 1285 rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX, 1286 1286 context, len); 1287 1287 if (rc == -ERANGE) { 1288 + kfree(context); 1289 + 1288 1290 /* Need a larger buffer. Query for the right size. */ 1289 1291 rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX, 1290 1292 NULL, 0); ··· 1294 1292 dput(dentry); 1295 1293 goto out_unlock; 1296 1294 } 1297 - kfree(context); 1298 1295 len = rc; 1299 1296 context = kmalloc(len+1, GFP_NOFS); 1300 1297 if (!context) {