login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
6
Re: [PATCH] isdn divas: fix proc creation
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Armin Schindler <armin@...>
To: Alexey Dobriyan <adobriyan@...>
Cc: <akpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] isdn divas: fix proc creation
Date: Friday, June 6, 2008 - 2:44 am
On Fri, 6 Jun 2008, Alexey Dobriyan wrote:
quoted text
> On Thu, Jun 05, 2008 at 12:25:06PM +0200, Armin Schindler wrote: >> On Sat, 31 May 2008, Alexey Dobriyan wrote: >>> 1. creating proc entry and not saving pointer to PDE and checking it >>> is not going to work. >> >> I don't know where you found this. I have look even in older versions, but >> the pointer divas_proc_entry is set by proc_create(). The patch to >> divasproc.c is wrong, it exists from the beginning of the driver. >> (2.6.25.4 doesn't contain the bug you describe). > > Check mainline kernel, namely, 2.6.26-rc5.
Ah, okay. So someone removed the pointer between 2.6.25 and 2.6.26 then. In that case your patch is correct of course. Armin
quoted text
>>> --- a/drivers/isdn/hardware/eicon/divasproc.c >>> +++ b/drivers/isdn/hardware/eicon/divasproc.c >>> @@ -125,8 +125,8 @@ static const struct file_operations divas_fops = { >>> >>> int create_divas_proc(void) >>> { >>> - proc_create(divas_proc_name, S_IFREG | S_IRUGO, proc_net_eicon, >>> - &divas_fops); >>> + divas_proc_entry = proc_create(divas_proc_name, S_IFREG | S_IRUGO, >>> + proc_net_eicon, &divas_fops); >>> if (!divas_proc_entry) >>> return (0); >
--
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] isdn divas: fix proc creation
, Alexey Dobriyan
, (Fri May 30, 7:34 pm)
Re: [PATCH] isdn divas: fix proc creation
, Armin Schindler
, (Thu Jun 5, 6:25 am)
Re: [PATCH] isdn divas: fix proc creation
, Alexey Dobriyan
, (Fri Jun 6, 2:17 am)
Re: [PATCH] isdn divas: fix proc creation
, Armin Schindler
, (Fri Jun 6, 2:44 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Kok, Auke
Re: Linux 2.6.21-rc1
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jeff Garzik
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Eric Dumazet
[PATCH] net: remove superfluous call to synchronize_net()
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
778 guests
online.
Online users
bestlaptopbags
sharon0610
jhitch6
qq1035886355
altabusrrty
bowiehunti14
Syndicate