mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
hwmon: (fschmd) Fix check on unsigned in watchdog_write()
If unsigned the watchdog_trigger() return value will not be checked correctly. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Andrew Morton <akpm@linux-foundation.org> Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
57784dfa82
commit
c7702c3134
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ static int watchdog_release(struct inode *inode, struct file *filp)
|
|||
static ssize_t watchdog_write(struct file *filp, const char __user *buf,
|
||||
size_t count, loff_t *offset)
|
||||
{
|
||||
size_t ret;
|
||||
int ret;
|
||||
struct fschmd_data *data = filp->private_data;
|
||||
|
||||
if (count) {
|
||||
|
|
Loading…
Reference in a new issue