diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-11-09 17:06:53 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-16 14:23:45 +0100 |
commit | f3fbb9a39860a6131a408d07238f5c245fac20a2 (patch) | |
tree | 13d73b6516a6f35ddb6c495e20009e731326b978 /cmds-device.c | |
parent | 1b9876f761305e499efc3bc6a4dc7d199831cdf8 (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