Commit e3c0acf4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: pohmelfs: avoid null dereference

err_out_put is for when the netfs_trans_alloc() succeeded.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0c14c06c
...@@ -322,7 +322,7 @@ int pohmelfs_write_create_inode(struct pohmelfs_inode *pi) ...@@ -322,7 +322,7 @@ int pohmelfs_write_create_inode(struct pohmelfs_inode *pi)
t = netfs_trans_alloc(psb, err + 1, 0, 0); t = netfs_trans_alloc(psb, err + 1, 0, 0);
if (!t) { if (!t) {
err = -ENOMEM; err = -ENOMEM;
goto err_out_put; goto err_out_exit;
} }
t->complete = pohmelfs_write_inode_complete; t->complete = pohmelfs_write_inode_complete;
t->private = igrab(inode); t->private = igrab(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment