projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c14c06
)
Staging: pohmelfs: avoid null dereference
author
Dan Carpenter
<error27@gmail.com>
Fri, 8 Jan 2010 11:51:50 +0000
(14:51 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 4 Mar 2010 00:42:40 +0000
(16:42 -0800)
err_out_put is for when the netfs_trans_alloc() succeeded.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/pohmelfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/pohmelfs/inode.c
b/drivers/staging/pohmelfs/inode.c
index e286fd16fedca26cf55b922fd296f30138fb9dcb..6a978c8dd5d1e3119ade996a660a4ca772676857 100644
(file)
--- a/
drivers/staging/pohmelfs/inode.c
+++ b/
drivers/staging/pohmelfs/inode.c
@@
-322,7
+322,7
@@
int pohmelfs_write_create_inode(struct pohmelfs_inode *pi)
t = netfs_trans_alloc(psb, err + 1, 0, 0);
if (!t) {
err = -ENOMEM;
- goto err_out_
pu
t;
+ goto err_out_
exi
t;
}
t->complete = pohmelfs_write_inode_complete;
t->private = igrab(inode);