login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
29
Re: [PATCH 2/2] Eliminate double kfree
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Dmitry Torokhov <dmitry.torokhov@...>
To: Julia Lawall <julia@...>
Cc: <linux-input@...>, <linux-kernel@...>, <kernel-janitors@...>
Subject:
Re: [PATCH 2/2] Eliminate double kfree
Date: Thursday, May 29, 2008 - 12:14 pm
On Thu, May 29, 2008 at 05:57:50PM +0200, Julia Lawall wrote:
quoted text
> On Thu, 29 May 2008, Dmitry Torokhov wrote: > > > Hi Julia, > > > > On Thu, May 29, 2008 at 03:05:07PM +0200, Julia Lawall wrote: > > > From: Julia Lawall <julia@diku.dk> > > > > > > The variable report is only non-NULL and non-freed in a small region of > > > code, so it should only be freed in error handling code that comes from > > > that region. > > > > > > > Thank you for your patch. There isn't a double-kfree though, as far > > as I can see. > > There was a double free because the error handling at the end of the > function (for input_register_device) would fall through to the > kfree(report) under err_free_devs, even though report is already freed at > that point. >
Ah, yes, indeed.. Well, that decides what branch the patch gets applied then ;) -- Dmitry --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 2/2] Eliminate double kfree
, Julia Lawall
, (Thu May 29, 9:05 am)
Re: [PATCH 2/2] Eliminate double kfree
, Dmitry Torokhov
, (Thu May 29, 11:33 am)
Re: [PATCH 2/2] Eliminate double kfree
, Julia Lawall
, (Thu May 29, 11:57 am)
Re: [PATCH 2/2] Eliminate double kfree
, Dmitry Torokhov
, (Thu May 29, 12:14 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
Re: PROBLEM: high load average when idle
Karl Meyer
PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out"
git
:
linux-netdev
:
Evgeniy Polyakov
Mark IPW2100 as BROKEN: Fatal interrupt. Scheduling firmware restart.
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 28/37] dccp: Integration of dynamic feature activation - part 3 (client side)
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
9 users
and
795 guests
online.
Online users
jeanemcf
racebin
eddymartinezku
pargafin
hugomoya98
currencytradin
custody11
tvwallmountsrpn
kellyholmane
Syndicate