提交 2620c6e3 编写于 作者: A Antonino A. Daplas 提交者: Linus Torvalds

nvidiafb: fix return value of nvidiafb_open()

Fix return value of nvidiafb_open().
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0449359f
...@@ -1016,7 +1016,7 @@ static int nvidiafb_release(struct fb_info *info, int user) ...@@ -1016,7 +1016,7 @@ static int nvidiafb_release(struct fb_info *info, int user)
par->open_count--; par->open_count--;
done: done:
mutex_unlock(&par->open_lock); mutex_unlock(&par->open_lock);
return 0; return err;
} }
static struct fb_ops nvidia_fb_ops = { static struct fb_ops nvidia_fb_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册