Add two missed chunks from the rev. 1.210, for the giant_read() and
giant_ioctl(). PR: kern/122287 MFC after: 3 days
This commit is contained in:
parent
639ca8f21b
commit
c951adca24
@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread
|
||||
if (dsw == NULL)
|
||||
return (ENXIO);
|
||||
mtx_lock(&Giant);
|
||||
retval = dev->si_devsw->d_gianttrick->
|
||||
d_ioctl(dev, cmd, data, fflag, td);
|
||||
retval = dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td);
|
||||
mtx_unlock(&Giant);
|
||||
dev_relthread(dev);
|
||||
return (retval);
|
||||
@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int ioflag)
|
||||
if (dsw == NULL)
|
||||
return (ENXIO);
|
||||
mtx_lock(&Giant);
|
||||
retval = dev->si_devsw->d_gianttrick->
|
||||
d_read(dev, uio, ioflag);
|
||||
retval = dsw->d_gianttrick->d_read(dev, uio, ioflag);
|
||||
mtx_unlock(&Giant);
|
||||
dev_relthread(dev);
|
||||
return (retval);
|
||||
|
Loading…
Reference in New Issue
Block a user