Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
drivers: thermal: fix invalid buffer size on boost_store
Browse files Browse the repository at this point in the history
Signed-off-by: Nanda Oktavera <codeharuka.yusa@gmail.com>
  • Loading branch information
okitavera committed Sep 7, 2019
1 parent 80d1c73 commit 117cafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/thermal_core.c
Expand Up @@ -2691,7 +2691,7 @@ thermal_boost_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len)
{
int ret;
ret = snprintf(boost_buf, PAGE_SIZE, buf);
ret = snprintf(boost_buf, sizeof(boost_buf), buf);
return len;
}

Expand Down

0 comments on commit 117cafa

Please sign in to comment.