View | Details | Raw Unified | Return to bug 249871 | Differences between
and this patch

Collapse All | Expand All

(-)sys/fs/nfsclient/nfs_clvfsops.c (-1 / +1 lines)
Lines 1010-1016 nfs_mount(struct mount *mp) Link Here
1010
			goto out;
1010
			goto out;
1011
		}
1011
		}
1012
		ret = sscanf(opt, "%d", &args.readahead);
1012
		ret = sscanf(opt, "%d", &args.readahead);
1013
		if (ret != 1 || args.readahead <= 0) {
1013
		if (ret != 1 || args.readahead < 0) {
1014
			vfs_mount_error(mp, "illegal readahead: %s",
1014
			vfs_mount_error(mp, "illegal readahead: %s",
1015
			    opt);
1015
			    opt);
1016
			error = EINVAL;
1016
			error = EINVAL;

Return to bug 249871