Fixed a missing userland dev_t to kernel dev_t conversion.
This commit is contained in:
parent
29b45e9e99
commit
212dfe6fc7
@ -416,7 +416,7 @@ snpioctl(dev, cmd, data, flags, p)
|
||||
|
||||
switch (cmd) {
|
||||
case SNPSTTY:
|
||||
tdev = *((dev_t *) data);
|
||||
tdev = udev2dev(*((udev_t *) data), 0);
|
||||
if (tdev == NODEV)
|
||||
return (snpdown(snp));
|
||||
|
||||
|
@ -416,7 +416,7 @@ snpioctl(dev, cmd, data, flags, p)
|
||||
|
||||
switch (cmd) {
|
||||
case SNPSTTY:
|
||||
tdev = *((dev_t *) data);
|
||||
tdev = udev2dev(*((udev_t *) data), 0);
|
||||
if (tdev == NODEV)
|
||||
return (snpdown(snp));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user