From: Pavel Shilovsky Date: Tue, 29 Nov 2016 19:30:58 +0000 (-0800) Subject: CIFS: Fix missing nls unload in smb2_reconnect() X-Git-Tag: firefly_0821_release~176^2~4^2~7^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a9c69e1528976adae719dd5e58a571e8ad90efba;p=firefly-linux-kernel-4.4.55.git CIFS: Fix missing nls unload in smb2_reconnect() commit 4772c79599564bd08ee6682715a7d3516f67433f upstream. Acked-by: Sachin Prabhu Signed-off-by: Pavel Shilovsky Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index dbfe7310b41b..2fa754c5fd62 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -278,7 +278,7 @@ out: case SMB2_CHANGE_NOTIFY: case SMB2_QUERY_INFO: case SMB2_SET_INFO: - return -EAGAIN; + rc = -EAGAIN; } unload_nls(nls_codepage); return rc;