Re: [PATCH v2] staging: panel: fix stackdump

2015-05-12 Thread Sudip Mukherjee
On Tue, May 12, 2015 at 02:27:13PM +0300, Dan Carpenter wrote: > On Tue, May 12, 2015 at 04:45:44PM +0530, Sudip Mukherjee wrote: > > if we load the module, unload and then again try to load the module, we > > will get a stackdump. In the module_exit function we are unregistering > > the device and

Re: [PATCH v2] staging: panel: fix stackdump

2015-05-12 Thread Dan Carpenter
On Tue, May 12, 2015 at 04:45:44PM +0530, Sudip Mukherjee wrote: > if we load the module, unload and then again try to load the module, we > will get a stackdump. In the module_exit function we are unregistering > the device and releasing the parport. So when we reach the detach > function parport

[PATCH v2] staging: panel: fix stackdump

2015-05-12 Thread Sudip Mukherjee
if we load the module, unload and then again try to load the module, we will get a stackdump. In the module_exit function we are unregistering the device and releasing the parport. So when we reach the detach function parport is already null and the unregister_reboot_notifier() is never called. Whe