mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
scsi: ufs: renesas: Fix private allocation
commitb6d128f89a
upstream. Should use devm_kzalloc() for struct ufs_renesas_priv because the .initialized should be false as default. Fixes:d69520288e
("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>
This commit is contained in:
parent
ed70fa5629
commit
8282d0b358
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ static int ufs_renesas_init(struct ufs_hba *hba)
|
|||
{
|
||||
struct ufs_renesas_priv *priv;
|
||||
|
||||
priv = devm_kmalloc(hba->dev, sizeof(*priv), GFP_KERNEL);
|
||||
priv = devm_kzalloc(hba->dev, sizeof(*priv), GFP_KERNEL);
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
ufshcd_set_variant(hba, priv);
|
||||
|
|
Loading…
Reference in a new issue