Skip to content

Commit

Permalink
Merge tag 'linux-watchdog-6.1-rc4' of git://www.linux-watchdog.org/li…
Browse files Browse the repository at this point in the history
…nux-watchdog

Pull watchdog fixes from Wim Van Sebroeck:

 - fix use after free in exar driver

 - spelling fix in comment

* tag 'linux-watchdog-6.1-rc4' of git://www.linux-watchdog.org/linux-watchdog:
  drivers: watchdog: exar_wdt.c fix use after free
  watchdog: sp805_wdt: fix spelling typo in comment
  • Loading branch information
torvalds committed Nov 1, 2022
2 parents 5aaef24 + 82ebbe6 commit d79dcde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/watchdog/exar_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,10 @@ static int __init exar_wdt_register(struct wdt_priv *priv, const int idx)
&priv->wdt_res, 1,
priv, sizeof(*priv));
if (IS_ERR(n->pdev)) {
int err = PTR_ERR(n->pdev);

kfree(n);
return PTR_ERR(n->pdev);
return err;
}

list_add_tail(&n->list, &pdev_list);
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/sp805_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static bool wdt_is_running(struct watchdog_device *wdd)
return (wdtcontrol & ENABLE_MASK) == ENABLE_MASK;
}

/* This routine finds load value that will reset system in required timout */
/* This routine finds load value that will reset system in required timeout */
static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout)
{
struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
Expand Down

0 comments on commit d79dcde

Please sign in to comment.