1 Commits

Author SHA1 Message Date
Zhiqiang Liu
4bf23f4238 hdparm: fix fd leak in sysfs_write_attr()
In sysfs_write_attr(), if "fmt[0] != %", will return without
close fp.

Fix issue: https://gitee.com/src-openeuler/hdparm/issues/I4S2C0

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2022-03-01 15:52:12 +08:00