login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
21
Re: [PATCH] Fix possible kobject reference counter leak in kobject_rename()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Greg KH <gregkh@...>
To: Kenji Kaneshige <kaneshige.kenji@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Subject:
Re: [PATCH] Fix possible kobject reference counter leak in kobject_rename()
Date: Thursday, August 21, 2008 - 11:58 am
On Thu, Aug 21, 2008 at 07:31:48PM +0900, Kenji Kaneshige wrote:
quoted text
> Hi, > > I found a possible kobject reference counter leak problem in > kobject_rename(). The following patch will fix it. > > Thanks, > Kenji Kaneshige > > > Fix possible kobject reference counter leak in kobject_rename(). > > If kobject_rename() failed because of name collision, we must call > kobject_put() for specified kobject before return. > > Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> > > --- > lib/kobject.c | 1 + > 1 file changed, 1 insertion(+) > > Index: linux-2.6.27-rc4/lib/kobject.c > =================================================================== > --- linux-2.6.27-rc4.orig/lib/kobject.c > +++ linux-2.6.27-rc4/lib/kobject.c > @@ -411,6 +411,7 @@ int kobject_rename(struct kobject *kobj, > "to '%s' as '%s' is already in existence.\n", > kobject_name(kobj), new_name, new_name); > kobject_put(temp_kobj); > + kobject_put(kobj); > return -EINVAL; > } > }
Thanks, but this is already fixed up with a patch from Eric in my tree in a different way. greg k-h --
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] Fix possible kobject reference counter leak in kobje...
, Kenji Kaneshige
, (Thu Aug 21, 6:31 am)
Re: [PATCH] Fix possible kobject reference counter leak in k...
, Greg KH
, (Thu Aug 21, 11:58 am)
Re: [PATCH] Fix possible kobject reference counter leak in k...
, Kenji Kaneshige
, (Thu Aug 21, 10:31 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jens Axboe
Re: [BUG] New Kernel Bugs
KAMEZAWA Hiroyuki
Re: 2.6.24-rc3-mm1
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Jarek Poplawski
Re: [BUG #12364] Re: HTB - very bad precision? HFSC works fine! 2.6.28
Alexey Dobriyan
Re: [GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
8 users
and
799 guests
online.
Online users
zeekec
hotcolddispens
mixedup65
rocky77556
copyvideogames
jaymekollarwz
doghealthltxbqz
ffjgkterlel
Syndicate