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)
commita27202fbe92b12eec895c36644440175de01d7a6
tree90e3dfc70f43afe69e1e8f11ad5be08549a0e614
parentf07c9a79f06cd33b1c9c2c4eacb60bafa7e3f310
Btrfs: NUL-terminate path buffer in DEV_INFO ioctl result

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