From: Antonino A. Daplas Date: Tue, 8 May 2007 07:39:42 +0000 (-0700) Subject: nvidiafb: fix return value of nvidiafb_open() X-Git-Tag: firefly_0821_release~29532 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2620c6e31735248ac26403558bd4279a8af619d8;p=firefly-linux-kernel-4.4.55.git nvidiafb: fix return value of nvidiafb_open() Fix return value of nvidiafb_open(). Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 610575319444..7c36b5fe582e 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c @@ -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 = {