]> Gentwo Git Trees - linux/.git/commit
firewire: core: utilize cleanup function to release workqueue in error path
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:20:59 +0000 (10:20 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:26:25 +0000 (10:26 +0900)
commitc908e072b6932e2d40645f6916c9b4bfe8f3f12f
tree6e9891472449d02003ed59bb20d5867ec1064e84
parentada2e4091d20735537fab67d970ffdbb8e9f7672
firewire: core: utilize cleanup function to release workqueue in error path

The helper macro, retain_and_null_ptr(), introduced by a commit
092d00ead733 ("cleanup: Provide retain_and_null_ptr()") in v6.16 kernel,
is useful in the error path to release the part of structure member.

This commit uses the relatively new function.

Link: https://lore.kernel.org/r/20250908012108.514698-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-card.c