mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Until recently uio_get_minor() returned 0 for success and a negative value on failure. This became non-negative for suceess and negative for failure. Restore the original return value spec so that we can successfully initialize UIO devices with a non-zero minor device number. Cc: "Hans J. Koch" <[email protected]> Signed-off-by: Damian Hobson-Garcia <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>