Skip to content

Commit

Permalink
watchdog: da9055: Fix invalid free of devm_ allocated data
Browse files Browse the repository at this point in the history
It is not required to free devm_ allocated data. Since kref_put
needs a valid release function, da9055_wdt_release_resources()
is not deleted.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Axel Lin authored and Wim Van Sebroeck committed Jan 2, 2013
1 parent 4a490b7 commit ee8c94a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/watchdog/da9055_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ static int da9055_wdt_ping(struct watchdog_device *wdt_dev)

static void da9055_wdt_release_resources(struct kref *r)
{
struct da9055_wdt_data *driver_data =
container_of(r, struct da9055_wdt_data, kref);

kfree(driver_data);
}

static void da9055_wdt_ref(struct watchdog_device *wdt_dev)
Expand Down

0 comments on commit ee8c94a

Please sign in to comment.