diff options
author | Steve French <stfrench@microsoft.com> | 2018-09-15 21:07:09 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-10-24 04:16:04 +0200 |
commit | 5a519bead49938aa0e3086bc753930d610fbd705 (patch) | |
tree | b918add3eb0344a338b749e3f089e9ac44e02bb6 /lib/bitmap.c | |
parent | smb3: allow stats which track session and share reconnects to be reset (diff) | |
download | linux-5a519bead49938aa0e3086bc753930d610fbd705.tar.xz linux-5a519bead49938aa0e3086bc753930d610fbd705.zip |
cifs: protect against server returning invalid file system block size
For a network file system we generally prefer large i/o, but
if the server returns invalid file system block/sector sizes
in cifs (vers=1.0) QFSInfo then set block size to a default
of a reasonable minimum (4K).
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions