diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-04-25 21:30:38 -0700 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-12 01:48:40 +0200 |
| commit | d059966c0c7d24c9a8b8e577432209d53a9ebfe0 (patch) | |
| tree | fcc9bd5e7fd62a658356d036104dd4f2dbf49d50 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 584afc86a1d44235ae4548d69efd40f649564233 (diff) | |
firmware_loader: builtin: ignore 0-size firmware
Currently, the builtin firmware loader allows 0-size firmware to be
returned successfully to drivers. This differs from all other loading
mechanisms (filesystem, sysfs fallback) which reject 0-byte files, and
forces drivers to add boilerplate size checks.
Modify firmware_request_builtin() to reject 0-size firmware. This will
also result in firmware loader falling back to other mechanisms if an
empty built-in firmware is present.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20260426043041.649202-1-dmitry.torokhov@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
