Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156653
b: refs/heads/master
c: 7cb7beb
h: refs/heads/master
i:
  156651: a13873e
v: v3
  • Loading branch information
Linus Torvalds committed Aug 12, 2009
1 parent 61ea369 commit 3a02852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7369e01eb85550ed60dd1b0e120b69dfb03dc23
refs/heads/master: 7cb7beb31aa3d941833b6a6e553687422c31e4b6
3 changes: 0 additions & 3 deletions trunk/drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,6 @@ int platform_driver_register(struct platform_driver *drv)
drv->driver.remove = platform_drv_remove;
if (drv->shutdown)
drv->driver.shutdown = platform_drv_shutdown;
if (drv->suspend || drv->resume)
pr_warning("Platform driver '%s' needs updating - please use "
"dev_pm_ops\n", drv->driver.name);

return driver_register(&drv->driver);
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,14 +1285,15 @@ static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dent
rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX,
context, len);
if (rc == -ERANGE) {
kfree(context);

/* Need a larger buffer. Query for the right size. */
rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX,
NULL, 0);
if (rc < 0) {
dput(dentry);
goto out_unlock;
}
kfree(context);
len = rc;
context = kmalloc(len+1, GFP_NOFS);
if (!context) {
Expand Down

0 comments on commit 3a02852

Please sign in to comment.