Btrfs: NUL-terminate path buffer in DEV_INFO ioctl result
authorJim Meyering <jim@meyering.net>
Thu, 26 Apr 2012 16:36:56 +0000 (18:36 +0200)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:31 +0000 (10:23 -0400)
A device with name of length BTRFS_DEVICE_PATH_NAME_MAX or longer
would not be NUL-terminated in the DEV_INFO ioctl result buffer.

Signed-off-by: Jim Meyering <meyering@redhat.com>
fs/btrfs/ioctl.c

Simple merge