aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8327.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c
index d5cc97bc33..d2a5a5b6be 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.c
@@ -306,7 +306,7 @@ ar8327_led_enable_hw_mode_show(struct device *dev,
struct ar8327_led *aled = led_cdev_to_ar8327_led(led_cdev);
ssize_t ret = 0;
- ret += sprintf(buf, "%d\n", aled->enable_hw_mode);
+ ret += scnprintf(buf, PAGE_SIZE, "%d\n", aled->enable_hw_mode);
return ret;
}
@@ -1433,4 +1433,3 @@ const struct ar8xxx_chip ar8337_chip = {
.mib_decs = ar8236_mibs,
.mib_func = AR8327_REG_MIB_FUNC
};
-