From: Dan Carpenter Date: Fri, 8 Jan 2010 11:51:50 +0000 (+0300) Subject: Staging: pohmelfs: avoid null dereference X-Git-Tag: MMI-PSA29.97-13-9~24618^2~1^2~227 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3c0acf44d837d3095ab8222d3271f9ba0d3db44;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: pohmelfs: avoid null dereference err_out_put is for when the netfs_trans_alloc() succeeded. Signed-off-by: Dan Carpenter Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- 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);