[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080327173458.GA32200@cs181133002.pp.htv.fi>
Date: Thu, 27 Mar 2008 19:34:58 +0200
From: Adrian Bunk <bunk@...nel.org>
To: sfrench@...ba.org
Cc: linux-cifs-client@...ts.samba.org, linux-kernel@...r.kernel.org
Subject: cifs_mount() contains strange code
This looks somehow fishy (note the "rc" settings):
<-- snip -->
...
int
cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
char *mount_data, const char *devname)
{
...
/* BB check if this works for exactly length
* three strings */
if ((strchr(volume_info.UNC + 3, '\\') == NULL)
&& (strchr(volume_info.UNC + 3, '/') ==
NULL)) {
rc = connect_to_dfs_path(xid, pSesInfo,
"", cifs_sb->local_nls,
cifs_sb->mnt_cifs_flags &
CIFS_MOUNT_MAP_SPECIAL_CHR);
rc = -ENODEV;
goto out;
<-- snip -->
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists