[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAHdPZaNeW3YwaJh4RYpkz2hY5n7SO9fsN8YKroCABig7ZRsU2Q@mail.gmail.com>
Date: Wed, 20 Jun 2012 22:50:32 +0530
From: "devendra.aaru" <devendra.aaru@...il.com>
To: netdev@...r.kernel.org
Subject: Q: NET/JME: pci_get_drvdata pointer return check at jme_remove
Hi,
looking at the jme_init_one error path, the context of the driver data
is set to null.
If the driver unloads , the unload _remove_one, will be called and
deferencing the pointer, leading to a oops.
so we need to have a check at before doing the netdev_priv at remove_one.
Please correct me if my understanding is wrong....
Thanks,
Devendra.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists