]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: renesas: Fix private allocation
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 3 Aug 2023 08:18:12 +0000 (17:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:32:30 +0000 (18:32 +0200)
commit9a731466afc5e326bc6d0576fe6db8076a7a7402
treed44c3f78f682a87f6c1e238264e29577f01fb2e4
parent763c06565055ae373fe7f89c11e1447bd1ded264
scsi: ufs: renesas: Fix private allocation

commit b6d128f89a85771433a004e8656090ccbe1fb969 upstream.

Should use devm_kzalloc() for struct ufs_renesas_priv because the
.initialized should be false as default.

Fixes: d69520288efd ("scsi: ufs: ufs-renesas: Add support for Renesas R-Car UFS controller")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20230803081812.1446282-1-yoshihiro.shimoda.uh@renesas.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ufs/host/ufs-renesas.c