CIFS: Add match_port check during looking for an existing connection (try #4)
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 13 Dec 2010 19:18:07 +0000 (22:18 +0300)
committerSteve French <sfrench@us.ibm.com>
Thu, 6 Jan 2011 19:07:53 +0000 (19:07 +0000)
commit4b886136df2b923b6fc6b2d83faa9554e84e05ab
treea82cdb2ad0272c841d4eab2a1128a4475abea04f
parenta9f1b85e5ba80519dea6974e3574fa7a30cc5e29
CIFS: Add match_port check during looking for an existing connection (try #4)

If we have a share mounted by non-standard port and try to mount another share
on the same host with standard port, we connect to the first share again -
that's wrong. This patch fixes this bug.

Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c