Fix match_prepath()
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 26 Apr 2017 13:05:46 +0000 (14:05 +0100)
committerSteve French <smfrench@gmail.com>
Fri, 28 Apr 2017 12:54:54 +0000 (07:54 -0500)
commitcd8c42968ee651b69e00f8661caff32b0086e82d
tree011ff7ece75e8dbb6a92674d0419069c7f97b95b
parent19ac4474203863a8141663d73d5976fe25464bfd
Fix match_prepath()

Incorrect return value for shares not using the prefix path means that
we will never match superblocks for these shares.

Fixes: commit c1d8b24d1819 ("Compare prepaths when comparing superblocks")
Cc: stable@vger.kernel.org
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c