diff options
| author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2025-09-25 11:11:29 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-22 08:09:23 +0200 |
| commit | fe6193a3187a1a7482ccfbc904bc527e7730a36c (patch) | |
| tree | 8bd3b257b0c5877f2ea2bd99e7661207f0ca539a /drivers/base/firmware_loader/sysfs.c | |
| parent | 0242623384c767b1156b61b67894b4ecf6682b8b (diff) | |
firmware_loader: Only call cancel when upload is active
The cancel_store() function currently calls the firmware upload cancel
operation even when no upload is in progress (i.e., when progress is
FW_UPLOAD_PROG_IDLE).
Update cancel_store() to only invoke the cancel operation when an upload
is active. If the upload is idle, return -ENODEV without calling cancel.
This change improves safety and correctness by ensuring driver operations
are only called in valid states.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Link: https://patch.msgid.link/20250925054129.2199157-1-kaushlendra.kumar@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader/sysfs.c')
0 files changed, 0 insertions, 0 deletions