diff options
author | scottl <scottl@FreeBSD.org> | 2007-05-16 16:57:21 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2007-05-16 16:57:21 +0000 |
commit | e9ba2ca930b8546703a252333142ac306f699c8e (patch) | |
tree | f9e34cb45ef4af5f3ad3da9a8075ba50c1abaab0 /sys/cam/cam_xpt.c | |
parent | e624c6d1384ac1b046a3ed195af839283d585eef (diff) | |
download | FreeBSD-src-e9ba2ca930b8546703a252333142ac306f699c8e.zip FreeBSD-src-e9ba2ca930b8546703a252333142ac306f699c8e.tar.gz |
Release the bus reference that is acquired when doing a CAMIOCOMMAND
ioctl. This should make SIM removal a bit more robust.
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index bd6d8e9..baa9bbf 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -1197,6 +1197,7 @@ xptioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td error = ENOTSUP; break; } + xpt_release_bus(bus); break; } /* |