[PATCH] atmel: audit return code of create_proc_* functions From: Christophe Lucas Signed-off-by: Christophe Lucas Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/net/wireless/atmel.c =================================================================== --- linux-kj.orig/drivers/net/wireless/atmel.c +++ linux-kj/drivers/net/wireless/atmel.c @@ -1509,6 +1509,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; @@ -1622,7 +1623,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);