mirror of https://gitee.com/openkylin/linux.git
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
|
@ -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 New Issue