diff options
| author | Thomas Gleixner <[email protected]> | 2024-09-04 09:08:28 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2024-09-06 14:29:22 +0000 |
| commit | fe513c2ef0a172a58f158e2e70465c4317f0a9a2 (patch) | |
| tree | b3f49c8908db340dc3d29e949b66a6e1856373a2 /drivers/platform/surface/aggregator/ssh_request_layer.c | |
| parent | static_call: Handle module init failure correctly in static_call_del_module() (diff) | |
| download | kernel-fe513c2ef0a172a58f158e2e70465c4317f0a9a2.tar.gz kernel-fe513c2ef0a172a58f158e2e70465c4317f0a9a2.zip | |
static_call: Replace pointless WARN_ON() in static_call_module_notify()
static_call_module_notify() triggers a WARN_ON(), when memory allocation
fails in __static_call_add_module().
That's not really justified, because the failure case must be correctly
handled by the well known call chain and the error code is passed
through to the initiating userspace application.
A memory allocation fail is not a fatal problem, but the WARN_ON() takes
the machine out when panic_on_warn is set.
Replace it with a pr_warn().
Fixes: 9183c3f9ed71 ("static_call: Add inline static call infrastructure")
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/8734mf7pmb.ffs@tglx
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_request_layer.c')
0 files changed, 0 insertions, 0 deletions
