]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: check MaxPathNameComponentLength != 0 before using it
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 30 Oct 2017 02:28:03 +0000 (13:28 +1100)
committerSteve French <smfrench@gmail.com>
Mon, 30 Oct 2017 07:11:38 +0000 (02:11 -0500)
commit952c978fd6a5d03711af97a9efb5ab5e390d4e3d
treec9a48a5f95603591edbeb175ef6bd8776a8df7a5
parent22f59aa048992942f3ea633fd1c02b9731a4dcc1
cifs: check MaxPathNameComponentLength != 0 before using it

And fix tcon leak in error path.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
fs/cifs/dir.c