Re: [PATCH v4 12/13] btrfs: introduce device delete by devid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 13, 2016 at 10:01:39AM +0800, Anand Jain wrote:
> +	if (vol_args->flags & BTRFS_DEVICE_BY_ID) {
> +		ret = btrfs_rm_device(root, NULL, vol_args->devid);
> +	} else {
> +		vol_args->name[BTRFS_PATH_NAME_MAX] = '\0';

			       BTRFS_SUBVOL_NAME_MAX

Spotted by Chris,

fs/btrfs/ioctl.c:2703: warning: array subscript is above array bounds

my gcc version does not report that. Fixed and for-next pushed.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux