Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit cdbb74a7 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

hwmon: (fschmd) Fix check on unsigned in watchdog_write()

commit c7702c31

 upstream.

If unsigned the watchdog_trigger() return value will not be
checked correctly.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cebb2ee6
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment