]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
fbdev/atyfb: lock_fb_info can't fail
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 May 2019 09:02:46 +0000 (11:02 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Jun 2019 18:28:32 +0000 (20:28 +0200)
It's properly protected by reboot_lock.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "Ville Syrjälä" <syrjala@sci.fi>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-16-daniel.vetter@ffwll.ch
drivers/video/fbdev/aty/atyfb_base.c

index b6fe103df1453ef1417cf36f306932d5410593f3..eebb62d82a23f1621affb201a2e08afc00bc0a7f 100644 (file)
@@ -3916,8 +3916,7 @@ static int atyfb_reboot_notify(struct notifier_block *nb,
        if (!reboot_info)
                goto out;
 
-       if (!lock_fb_info(reboot_info))
-               goto out;
+       lock_fb_info(reboot_info);
 
        par = reboot_info->par;