habanalabs: add missing error check in sysfs clk_freq_mhz_show
authorTomer Tayar <ttayar@habana.ai>
Wed, 12 Jan 2022 09:20:41 +0000 (11:20 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:03 +0000 (14:22 +0200)
commitaa3e1f12a2c1d6e36ce18c153706c906306b2e2d
tree759090d5dde5faef2ab5bf771efc3d3bf914c508
parentca4c8e4e7b57eec403e9887cd8b47d2ff8c97811
habanalabs: add missing error check in sysfs clk_freq_mhz_show

Add a missing error check in the sysfs show functions for
clk_max_freq_mhz and clk_cur_freq_mhz_show.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/sysfs.c