diff options
author | Dan Carpenter <error27@gmail.com> | 2010-01-08 14:51:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:42:40 -0800 |
commit | e3c0acf44d837d3095ab8222d3271f9ba0d3db44 (patch) | |
tree | 8b185d3f53d197c3de3df885cb82125cd338d631 | |
parent | 0c14c06cc18bc0d7f968d0bf1e531bcb8ced387d (diff) | |
download | op-kernel-dev-e3c0acf44d837d3095ab8222d3271f9ba0d3db44.zip op-kernel-dev-e3c0acf44d837d3095ab8222d3271f9ba0d3db44.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index e286fd1..6a978c8 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); |