diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-01-15 12:24:17 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-02-08 21:26:17 -0500 |
commit | 833f7d4819a88f027033e0033ea44f7ae3e45a9b (patch) | |
tree | e1d336e6ab2502c82e91722e3ebc1f864f344aea /include/ufs/ufshcd.h | |
parent | 36822124f9de200cedc2f42516301b50d386a6cd (diff) | |
download | linux-833f7d4819a88f027033e0033ea44f7ae3e45a9b.tar.gz linux-833f7d4819a88f027033e0033ea44f7ae3e45a9b.tar.bz2 linux-833f7d4819a88f027033e0033ea44f7ae3e45a9b.zip |
scsi: ufs: core: Fix an error handling path in ufshcd_read_desc_param()
If an error occurs, some memory may need to be freed, as in the other error
handling paths.
Before the commit in the Fixes tag, this test was done before the memory
allocation, so there was no issue.
Fixes: 16ed9d312b42 ("scsi: ufs: core: Remove ufshcd_map_desc_id_to_length()")
Link: https://lore.kernel.org/r/2c6e42205e5ec22e5e8c7c85c6deb8fde31c74da.1673781835.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs/ufshcd.h')
0 files changed, 0 insertions, 0 deletions