summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-01-08 14:51:50 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 16:42:40 -0800
commite3c0acf44d837d3095ab8222d3271f9ba0d3db44 (patch)
tree8b185d3f53d197c3de3df885cb82125cd338d631
parent0c14c06cc18bc0d7f968d0bf1e531bcb8ced387d (diff)
downloadblackbird-obmc-linux-e3c0acf44d837d3095ab8222d3271f9ba0d3db44.tar.gz
blackbird-obmc-linux-e3c0acf44d837d3095ab8222d3271f9ba0d3db44.zip
Staging: pohmelfs: avoid null dereference
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>
-rw-r--r--drivers/staging/pohmelfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
index e286fd16fedc..6a978c8dd5d1 100644
--- 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_put;
+ goto err_out_exit;
}
t->complete = pohmelfs_write_inode_complete;
t->private = igrab(inode);
OpenPOWER on IntegriCloud