[PATCH v1 0/5] driver core: fw_devlink: Clean up strings and mutex usages

Andy Shevchenko
2024-08-21T15:48:44Z

Replace strlen() + kmalloc() + snprintf() by kasprintf() ond other
string handling improvements.

Use guard() / scoped_guard() to handle fw_devlink mutex.

Andy Shevchenko (5):
driver core: Sort headers
driver core: Use kasprintf() instead of fixed buffer formatting
driver core: Use guards for simple mutex locks
driver core: Make use of returned value of dev_err_probe()
driver core: Use 2-argument strscpy()

drivers/base/core.c | 142 ++++++++++++++++++++------------------------
1 file changed, 64 insertions(+), 78 deletions(-)

--
2.43.0.rc1.1336.g36b5255a03ac