Backing out the wrong fix which could possibly trash the memory if devfs
tries to drop the reference count after our close routine returns. A more correct fix is to defer the destroy_dev() to a taskqueue(either in devfs or locally). Reminded by: jhb
This commit is contained in:
parent
e53baad997
commit
85e7c591e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166600
@ -175,7 +175,6 @@ nsmb_dev_close(struct cdev *dev, int flag, int fmt, struct thread *td)
|
|||||||
*/
|
*/
|
||||||
dev->si_drv1 = NULL;
|
dev->si_drv1 = NULL;
|
||||||
free(sdp, M_NSMBDEV);
|
free(sdp, M_NSMBDEV);
|
||||||
dev_relthread(dev); /* XXX dealing with si_threadcount */
|
|
||||||
destroy_dev(dev);
|
destroy_dev(dev);
|
||||||
splx(s);
|
splx(s);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user