mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
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>
This commit is contained in:
parent
0c14c06cc1
commit
e3c0acf44d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue