]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d527d8115bd2d5039d80d00e0f8d924fea108e7
tree90e3dfc70f43afe69e1e8f11ad5be08549a0e614
parent13152f6739c1c0de9bff2910d92cd236ce2bd1e0
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