Fix match_prepath()
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 26 Apr 2017 13:05:46 +0000 (14:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:31:01 +0000 (14:31 +0200)
commitb7174f40382813750fd2ef225cc0a5b19e9c89d4
tree10e48a8a22f9c552c33c138a15f9c6abbd0fa4d9
parent93697e1e509948e16d588c93b39d38d7b144efe7
Fix match_prepath()

commit cd8c42968ee651b69e00f8661caff32b0086e82d upstream.

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")
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c