firmware: microchip: fix wrong sizeof argument
authorSamasth Norway Ananda <samasth.norway.ananda@oracle.com>
Thu, 25 Jan 2024 21:19:33 +0000 (13:19 -0800)
committerConor Dooley <conor.dooley@microchip.com>
Mon, 29 Jan 2024 18:52:11 +0000 (18:52 +0000)
commit0abcac4fe3ca3aeaef40ad53c0b295b2d5f8cbf1
tree7678943943b3f2b8889a9ec2d66ed547f114285d
parent6613476e225e090cc9aad49be7fa504e290dd33d
firmware: microchip: fix wrong sizeof argument

response_msg is a pointer to an unsigned int (u32). So passing just
response_msg to sizeof would not print the size of the variable. To get
the size of response_msg we need to pass it as a pointer variable.

Fixes: ec5b0f1193ad ("firmware: microchip: add PolarFire SoC Auto Update support")
Signed-off-by: Samasth Norway Ananda <samasth.norway.ananda@oracle.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/firmware/microchip/mpfs-auto-update.c