cifs: NULL dereference on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jan 2012 08:39:22 +0000 (11:39 +0300)
committerSteve French <smfrench@gmail.com>
Tue, 24 Jan 2012 16:37:19 +0000 (10:37 -0600)
commit803ab977618eae2b292cda0a97eed75f42250ddf
tree846b9d4086148ea91c440dde2b8ef5131ce6ecc2
parentc1aab02dac690af7ff634d8e1cb3be6a04387eef
cifs: NULL dereference on allocation failure

We should just return directly here, the goto causes a NULL dereference.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c