Re: [PATCH] eeprom: ee1004: Unlock on error path in probe()

From: Markus Elfring
Date: Fri Jul 12 2024 - 11:42:44 EST


> Call mutex_unlock() before returning an error in ee1004_probe()

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&ee1004_bus_lock);”?
https://elixir.bootlin.com/linux/v6.10-rc7/source/include/linux/mutex.h#L196


Would you like to refer to the function name “ee1004_probe” in the summary phrase?

Regards,
Markus