[PATCH -next v3] rtc: stmp3xxx: Add failure handling for stmp3xxx_wdt_register()

Wolfram Sang wsa at kernel.org
Thu Sep 15 00:14:42 PDT 2022


On Thu, Sep 15, 2022 at 02:52:53PM +0800, Lin Yujun wrote:
> Use platform_device_put() to free platform device before print
> error message when platform_device_add() fails to run.
> 
> Fixes: 1a71fb84fda6 ("rtc: stmp3xxx: add wdt-accessor function")
> Signed-off-by: Lin Yujun <linyujun809 at huawei.com>

Reviewed-by: Wolfram Sang <wsa at kernel.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220915/80d9fb59/attachment.sig>


More information about the linux-arm-kernel mailing list