]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nvidiafb: fix return value of nvidiafb_open()
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 8 May 2007 07:39:42 +0000 (00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:32 +0000 (11:15 -0700)
Fix return value of nvidiafb_open().

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/nvidia/nvidia.c

index 6105753194447b5e083a6f8fcd05aaf55c208da3..7c36b5fe582eeee8ef80de28bc85b0a20d9eca1e 100644 (file)
@@ -1016,7 +1016,7 @@ static int nvidiafb_release(struct fb_info *info, int user)
        par->open_count--;
 done:
        mutex_unlock(&par->open_lock);
-       return 0;
+       return err;
 }
 
 static struct fb_ops nvidia_fb_ops = {