Re: [PATCH] PCI: keystone: fix crash with deferred probe

From: Russell King - ARM Linux
Date: Mon Nov 23 2015 - 06:39:36 EST


On Mon, Nov 23, 2015 at 07:22:09PM +0800, Jisheng Zhang wrote:
> when trying to add berlin pcie support and came up one patch
>
> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/384575.html
>
> when build testing, I also realized this issue, but keystone relies on
> hook_fault_code() which is will be freed after boot, so your patch isn't
> completed.

hook_fault_code() is intentionally not callable after boot. It's unsafe
to try to change the fault handling for a running system. It's even more
unsafe to try to remove a fault handler which is located in module code.

--
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/