aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/uio/uio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
index c8b926291e28..b645c47501b4 100644
--- a/drivers/uio/uio.c
+++ b/drivers/uio/uio.c
@@ -374,6 +374,7 @@ static int uio_get_minor(struct uio_device *idev)
374 retval = idr_alloc(&uio_idr, idev, 0, UIO_MAX_DEVICES, GFP_KERNEL); 374 retval = idr_alloc(&uio_idr, idev, 0, UIO_MAX_DEVICES, GFP_KERNEL);
375 if (retval >= 0) { 375 if (retval >= 0) {
376 idev->minor = retval; 376 idev->minor = retval;
377 retval = 0;
377 } else if (retval == -ENOSPC) { 378 } else if (retval == -ENOSPC) {
378 dev_err(idev->dev, "too many uio devices\n"); 379 dev_err(idev->dev, "too many uio devices\n");
379 retval = -EINVAL; 380 retval = -EINVAL;