diff options
| author | Jiri Pirko <[email protected]> | 2022-08-24 12:20:11 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-08-25 20:22:53 +0000 |
| commit | f94b606325c194adadaee2265b4db990802c4850 (patch) | |
| tree | b8c0ec9e33bbb6522be4209cbd0d4fcb5526c968 /net/bluetooth/hci_request.c | |
| parent | netdevsim: add version fw.mgmt info info_get() and mark as a component (diff) | |
| download | kernel-f94b606325c194adadaee2265b4db990802c4850.tar.gz kernel-f94b606325c194adadaee2265b4db990802c4850.zip | |
net: devlink: limit flash component name to match version returned by info_get()
Limit the acceptance of component name passed to cmd_flash_update() to
match one of the versions returned by info_get(), marked by version type.
This makes things clearer and enforces 1:1 mapping between exposed
version and accepted flash component.
Check VERSION_TYPE_COMPONENT version type during cmd_flash_update()
execution by calling info_get() with different "req" context.
That causes info_get() to lookup the component name instead of
filling-up the netlink message.
Remove "UPDATE_COMPONENT" flag which becomes used.
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
