Skip to content

Commit

Permalink
hwmon: (fschmd) Fix check on unsigned in watchdog_write()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Jean Delvare committed Oct 24, 2009
1 parent 57784df commit c7702c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/fschmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7702c3

Please sign in to comment.