]> git.ipfire.org Git - thirdparty/linux.git/commit
firewire: core: use cleanup function to release cached configuration ROM
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 20 Oct 2025 11:58:10 +0000 (20:58 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 20 Oct 2025 12:00:38 +0000 (21:00 +0900)
commitb330f98ff238ad9446574965d09cab33736519d5
treec9254d386f361da8fd7888232b5298e246f2d73f
parentdbd0cf204fe6ba7ba226153d1d90369019b90164
firewire: core: use cleanup function to release cached configuration ROM

When returning from read_config_rom() function, the allocated buffer and
the previous buffer for configuration ROM should be released. The cleanup
function is useful in the case.

This commit uses the cleanup function to remove goto statements.

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