Re: gigaset: freeing an active object
From: Tilman Schmidt <hidden>
Date: 2015-11-29 18:47:38
Also in:
lkml
Attachments
- signature.asc [application/pgp-signature] 473 bytes
From: Tilman Schmidt <hidden>
Date: 2015-11-29 18:47:38
Also in:
lkml
Am 29.11.2015 um 19:22 schrieb Peter Hurley:
quoted
quoted
[ 413.536749] WARNING: CPU: 6 PID: 25400 at lib/debugobjects.c:263 debug_print_object+0x1c4/0x1e0() [ 413.538111] ODEBUG: free active (active state 0) object type: timer_list hint: delayed_work_timer_fn+0x0/0x90This message seems to indicate that an object of type timer_list was freed which was still active. However the driver in question (ser_gigaset) does not use any timers.
[...]
quoted
Judging from the backtrace below this must be the call kfree(cs->hw.ser); in drivers/isdn/gigaset/ser-gigaset.c line 375. cs->hw.ser is of type struct ser_cardstate *. struct ser_cardstate consists of a struct platform_device, a struct completion, an atomic_t and a pointer. No timer_list.
[...]
The platform_device embedded in struct ser_cardstate hasn't been released when you kfree() the memory it's in.
Btw I don't see a timer_list object in struct platform_device either. Nor in the embedded struct device. -- Tilman Schmidt E-Mail: tilman@imap.cc Bonn, Germany Nous, on a des fleurs et des bougies pour nous protéger.