aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-07-10 14:26:49 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-07-10 14:26:49 -0700
commit24f4b40ec2184f3698faed3082895fcc1f6be282 (patch)
tree1a6a5839d7c7f3f3930204b46bb4b99ca1df28ee /drivers
parentMerge tag 'dmaengine-fix-5.19' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
parentida: don't use BUG_ON() for debugging (diff)
downloadlinux-24f4b40ec2184f3698faed3082895fcc1f6be282.tar.gz
linux-24f4b40ec2184f3698faed3082895fcc1f6be282.zip
Merge branch 'hot-fixes' (fixes for rc6)
This is a collection of three fixes for small annoyances. Two of these are already pending in other trees, but I really don't want to release another -rc with these issues pending, so I picked up the patches for these things directly. We'll end up with duplicate commits eventually, I prefer that over having these issues pending. The third one is just me getting rid of another BUG_ON() just because it was reported and I dislike those things so much. * merge 'hot-fixes' branch: ida: don't use BUG_ON() for debugging drm/aperture: Run fbdev removal before internal helpers ptrace: fix clearing of JOBCTL_TRACED in ptrace_unfreeze_traced()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_aperture.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/gpu/drm/drm_aperture.c b/drivers/gpu/drm/drm_aperture.c
index 74bd4a76b253..059fd71424f6 100644
--- a/drivers/gpu/drm/drm_aperture.c
+++ b/drivers/gpu/drm/drm_aperture.c
@@ -329,7 +329,20 @@ int drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
const struct drm_driver *req_driver)
{
resource_size_t base, size;
- int bar, ret = 0;
+ int bar, ret;
+
+ /*
+ * WARNING: Apparently we must kick fbdev drivers before vgacon,
+ * otherwise the vga fbdev driver falls over.
+ */
+#if IS_REACHABLE(CONFIG_FB)
+ ret = remove_conflicting_pci_framebuffers(pdev, req_driver->name);
+ if (ret)
+ return ret;
+#endif
+ ret = vga_remove_vgacon(pdev);
+ if (ret)
+ return ret;
for (bar = 0; bar < PCI_STD_NUM_BARS; ++bar) {
if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
@@ -339,15 +352,6 @@ int drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
drm_aperture_detach_drivers(base, size);
}
- /*
- * WARNING: Apparently we must kick fbdev drivers before vgacon,
- * otherwise the vga fbdev driver falls over.
- */
-#if IS_REACHABLE(CONFIG_FB)
- ret = remove_conflicting_pci_framebuffers(pdev, req_driver->name);
-#endif
- if (ret == 0)
- ret = vga_remove_vgacon(pdev);
- return ret;
+ return 0;
}
EXPORT_SYMBOL(drm_aperture_remove_conflicting_pci_framebuffers);
+0 2019-05-18alpha: move arch/alpha/defconfig to arch/alpha/configs/defconfigMasahiro Yamada2-0/+2 2019-05-18kbuild: terminate Kconfig when $(CC) or $(LD) is missingMasahiro Yamada2-1/+9 2019-05-18kbuild: turn auto.conf.cmd into a mandatory include fileMasahiro Yamada1-1/+1 2019-05-18.gitignore: exclude .get_maintainer.ignore and .gitattributesMasahiro Yamada1-3/+5 2019-05-18kbuild: add all Clang-specific flags unconditionallyMasahiro Yamada2-11/+11 2019-05-18kbuild: Don't try to add '-fcatch-undefined-behavior' flagNathan Chancellor1-1/+0 2019-05-18kbuild: add some extra warning flags unconditionallyMasahiro Yamada1-6/+7 2019-05-18kbuild: add -Wvla flag unconditionallyMasahiro Yamada1-1/+1 2019-05-18arch: remove dangling asm-generic wrappersMasahiro Yamada5-13/+0 2019-05-18samples: guard sub-directories with CONFIG optionsMasahiro Yamada3-6/+22 2019-05-18kbuild: re-enable int-in-bool-context warningMasahiro Yamada1-1/+0 2019-05-18MAINTAINERS: kbuild: Add pattern for scripts/*vmlinux*Krzysztof Kozlowski1-0/+1 2019-05-18sh: exclude vmlinux.scr from .gitignore patternMasahiro Yamada1-0/+1 2019-05-18sh: vsyscall: drop unnecessary cc-ldoptionNick Desaulniers1-2/+1 2019-05-18ia64: require -Wl,--hash-style=sysvNick Desaulniers1-1/+1 2019-05-18csky: remove deprecated arch/csky/boot/dts/include/dt-bindingsMasahiro Yamada1-1/+0 2019-05-17ext4: avoid panic during forced reboot due to aborted journalJan Kara1-1/+1 2019-05-17i2c: core: add device-managed version of i2c_new_dummyHeiner Kallweit3-0/+50 2019-05-17i2c: core: improve return value handling of i2c_new_device and i2c_new_dummyHeiner Kallweit1-13/+61 2019-05-17powerpc/cacheinfo: Remove double freeTobin C. Harding1-1/+0 2019-05-17powerpc/mm/hash: Fix get_region_id() for invalid addressesAneesh Kumar K.V1-0/+4 2019-05-17kvm: fix compilation on aarch64Paolo Bonzini1-1/+1 2019-05-17objtool: Allow AR to be overridden with HOSTARNathan Chancellor1-1/+2 2019-05-17fbdev/efifb: Ignore framebuffer memmap entries that lack any memory typesArd Biesheuvel1-2/+6 2019-05-16riscv: fix locking violation in page fault handlerAndreas Schwab1-1/+2 2019-05-16RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCsYash Shah3-0/+192