From: Ronnie Sahlberg Date: Mon, 30 Oct 2017 02:28:03 +0000 (+1100) Subject: cifs: check MaxPathNameComponentLength != 0 before using it X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90d8668e4ac34a84c52dc5b078af9d982323502c;p=pandora-kernel.git cifs: check MaxPathNameComponentLength != 0 before using it commit f74bc7c6679200a4a83156bb89cbf6c229fe8ec0 upstream. And fix tcon leak in error path. Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French Reviewed-by: David Disseldorp [bwh: Backported to 3.2: cifs_tcon pointer is tcon, and there's no leak to fix] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed