* [KJ] [patch 2.6.13-rc1 02/23] Audit return code of create_proc_*
@ 2005-07-07 15:44 Christophe Lucas
2005-07-07 22:16 ` Alexey Dobriyan
0 siblings, 1 reply; 2+ messages in thread
From: Christophe Lucas @ 2005-07-07 15:44 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: proc_create_drivers_net_wireless_atmel.c.diff --]
[-- Type: text/plain, Size: 1081 bytes --]
diff -urpNX dontdiff 2.6.13-rc1.orig/drivers/net/wireless/atmel.c 2.6.13-rc1/drivers/net/wireless/atmel.c
--- 2.6.13-rc1.orig/drivers/net/wireless/atmel.c 2005-06-29 07:57:29.000000000 +0200
+++ 2.6.13-rc1/drivers/net/wireless/atmel.c 2005-07-05 11:25:03.189441296 +0200
@@ -1507,6 +1507,7 @@ static int atmel_read_proc(char *page, c
struct net_device *init_atmel_card( unsigned short irq, int port, const AtmelFWType fw_type,
struct device *sys_dev, int (*card_present)(void *), void *card)
{
+ struct proc_dir_entry* ent;
struct net_device *dev;
struct atmel_private *priv;
int rc;
@@ -1621,7 +1622,9 @@ struct net_device *init_atmel_card( unsi
netif_carrier_off(dev);
- create_proc_read_entry ("driver/atmel", 0, NULL, atmel_read_proc, priv);
+ ent = create_proc_read_entry ("driver/atmel", 0, NULL, atmel_read_proc, priv);
+ if (!ent)
+ printk(KERN_WARNING "atmel: Unable to create /proc entry.\n");
printk(KERN_INFO "%s: Atmel at76c50x wireless. Version %d.%d simon@thekelleys.org.uk\n",
dev->name, DRIVER_MAJOR, DRIVER_MINOR);
--
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] [patch 2.6.13-rc1 02/23] Audit return code of create_proc_*
2005-07-07 15:44 [KJ] [patch 2.6.13-rc1 02/23] Audit return code of create_proc_* Christophe Lucas
@ 2005-07-07 22:16 ` Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-07-07 22:16 UTC (permalink / raw)
To: kernel-janitors
On Thursday 07 July 2005 19:44, Christophe Lucas wrote:
> --- 2.6.13-rc1.orig/drivers/net/wireless/atmel.c
> +++ 2.6.13-rc1/drivers/net/wireless/atmel.c
> struct net_device *init_atmel_card( unsigned short irq, int port, const AtmelFWType fw_type,
> struct device *sys_dev, int (*card_present)(void *), void *card)
> {
> + struct proc_dir_entry* ent;
struct proc_dir_entry *ent;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-07 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-07 15:44 [KJ] [patch 2.6.13-rc1 02/23] Audit return code of create_proc_* Christophe Lucas
2005-07-07 22:16 ` Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.