Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-08 Thread Martin K. Petersen
Arnd, > It turns out that there are no platforms that have PCI but don't have > an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build > testing kernels for those platforms a lot, and avoids a lot of > inadvertent build regressions. > > Add a dependency for CONFIG_PCI and remove a

[PATCH] usbredirhost: fix null dereference

2025-04-08 Thread Dmitry Frolov
In function usbredirhost_open_full(), when host->parser==NULL, the call sequence: "usbredirhost_close() ---> usbredirhost_clear_device() ---> usbredirhost_handle_disconnect()" is called, where host->parser is being derefferenced without a check. Found by Linux Verification Center (linu

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-08 Thread Geert Uytterhoeven
Hi Arnd, CC Gerg On Mon, 7 Apr 2025 at 12:40, Arnd Bergmann wrote: > From: Arnd Bergmann > > It turns out that there are no platforms that have PCI but don't have an MMU, > so adding a Kconfig dependency on CONFIG_PCI simplifies build testing kernels > for those platforms a lot, and avoids a lo

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-08 Thread Arnd Bergmann
On Tue, Apr 8, 2025, at 12:22, Geert Uytterhoeven wrote: > On Mon, 7 Apr 2025 at 12:40, Arnd Bergmann wrote: > >> --- a/drivers/pci/Kconfig >> +++ b/drivers/pci/Kconfig >> @@ -21,6 +21,7 @@ config GENERIC_PCI_IOMAP >> menuconfig PCI >> bool "PCI support" >> depends on HAVE_PCI >>

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-08 Thread Jeff Hugo
On 4/7/2025 4:38 AM, Arnd Bergmann wrote: From: Arnd Bergmann It turns out that there are no platforms that have PCI but don't have an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build testing kernels for those platforms a lot, and avoids a lot of inadvertent build regressions.

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-08 Thread Thomas Zimmermann
Am 07.04.25 um 12:38 schrieb Arnd Bergmann: From: Arnd Bergmann It turns out that there are no platforms that have PCI but don't have an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build testing kernels for those platforms a lot, and avoids a lot of inadvertent build regress