Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbbK2SiW (ORCPT ); Sun, 29 Nov 2015 13:38:22 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:49825 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbbK2SiT (ORCPT ); Sun, 29 Nov 2015 13:38:19 -0500 X-Sasl-enc: vpu8WVVwRDF3SZV7Y7uyZsvOe0V1otfCZGTWjc8grgxe 1448822297 Subject: Re: gigaset: freeing an active object To: Peter Hurley , Sasha Levin References: <56587467.8050102@oracle.com> <565B1A1B.8020503@imap.cc> <565B4256.6080101@hurleysoftware.com> Cc: pebolle@tiscali.nl, isdn@linux-pingi.de, davem@davemloft.net, gigaset307x-common@lists.sourceforge.net, LKML , "netdev@vger.kernel.org" , syzkaller From: Tilman Schmidt X-Enigmail-Draft-Status: N1110 Message-ID: <565B460D.9080002@imap.cc> Date: Sun, 29 Nov 2015 19:38:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <565B4256.6080101@hurleysoftware.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IVwxEukI8Bhr1cSQVa7TwAWbnCq476H2w" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1977 Lines: 58 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IVwxEukI8Bhr1cSQVa7TwAWbnCq476H2w Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am 29.11.2015 um 19:22 schrieb Peter Hurley: > On 11/29/2015 10:30 AM, Tilman Schmidt wrote: >> >> 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. [...] >=20 > The platform_device embedded in struct ser_cardstate hasn't been releas= ed when > you kfree() the memory it's in. How so? The kfree() call quoted above is immediately preceded by: platform_device_unregister(&cs->hw.ser->dev); Thanks, Tilman --=20 Tilman Schmidt E-Mail: tilman@imap.cc Bonn, Germany Nous, on a des fleurs et des bougies pour nous prot=C3=A9ger. --IVwxEukI8Bhr1cSQVa7TwAWbnCq476H2w Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWW0YYAAoJEFPuqx0v+F+q/PgIALRbCX3jbhydRL2izb1IEDmW +96TdoaHqMmA+qksHKPgkTox/DC+cjm/o9UjakGWAZFR/4//G7TJTUsX0fSwVtAi SUXvUHf1Ja7crbExA9j+y84Izgaq+1LpkidzgFHGgn1Vo62xBOZ/4f6Yp1GJQmVw q6MJjzguSIucPKW/WXN6Uy/jkfY9KxeWjY5W13mCukCu954LHpVVWm6tBQf4KrPt b3CQw11t10jiuPpDXiq+zn64ZPOORanLRnagRUmaqE+Upn3uU7cveZyIZapicSmD /wEiLdqIcKrlXd+bDKnb9tnBUWt4Kz5I58lIXsCkG3ciwo6OUDfpRPeDuymVsA0= =wiF7 -----END PGP SIGNATURE----- --IVwxEukI8Bhr1cSQVa7TwAWbnCq476H2w-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/