summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-11-09 17:06:53 +0800
committerDavid Sterba <dsterba@suse.com>2015-11-16 14:23:45 +0100
commitf3fbb9a39860a6131a408d07238f5c245fac20a2 (patch)
tree13d73b6516a6f35ddb6c495e20009e731326b978 /cmds-device.c
parent1b9876f761305e499efc3bc6a4dc7d199831cdf8 (diff)
btrfs-progs: Check periodic.timer_fd's value before use
periodic.timer_fd's value is 0 on inititlize-failed case, if no value-checking before read(), the code will run as read(STDIN). This patch fixed above case. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-device.c')
0 files changed, 0 insertions, 0 deletions