zio-cdev: fix bug when opening a wrong minor
Now the open() returns -ENODEV at is should. The bug only happens if you are not using udev, though. Original code returned -EBUSY when 0 (== false) was needed. The patch is bigger than that because it simplifies related code. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Federico Vaga <federico.vaga@gmail.com>
Showing
Please
register
or
sign in
to comment