]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: set *resp_buf_type to NO_BUFFER on error
authorSteve French <smfrench@gmail.com>
Sun, 22 Apr 2018 15:24:19 +0000 (10:24 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 24 Apr 2018 15:06:28 +0000 (10:06 -0500)
commit5dc87b06adad9f55532c4b398a55b2f17104d7b5
treee5b7b5a9032e662ebbc91037ea63efa6cf3f5c72
parent973749235e9a82e6427f10ff5051544290b05216
CIFS: set *resp_buf_type to NO_BUFFER on error

Dan Carpenter had pointed this out a while ago, but the code around
this had changed so wasn't causing any problems since that field
was not used in this error path.

Still, it is cleaner to always initialize this field, so changing
the error path to set it.

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/transport.c