Q: NET/JME: pci_get_drvdata pointer return check at jme_remove

From: devendra.aaru <hidden>
Date: 2012-06-20 17:20:32

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help