fsi: Fix panic on scom file read
Reading the scom file without the custom open method (i2cr_scom_open) causes a kernel panic. This change replaces simple_open with i2cr_scom_open to properly initialize the private_data field in the file structure, preventing the panic during scom file operations. Fixes: c0b34bed ("fsi: Add I2C Responder SCOM driver") Signed-off-by:Lakshmi Yadlapati <lakshmiy@us.ibm.com> Reviewed-by:
Ninad Palsule <ninad@linux.ibm.com> Link: https://lore.kernel.org/r/20231214000744.1281464-1-lakshmiy@us.ibm.com Signed-off-by:
Joel Stanley <joel@jms.id.au>
Please register or sign in to comment