Commit 38b2db5
scsi: be2iscsi: Fix a theoretical leak in beiscsi_create_eqs()
The be_fill_queue() function can only fail when "eq_vaddress" is NULL and
since it's non-NULL here that means the function call can't fail. But
imagine if it could, then in that situation we would want to store the
"paddr" so that dma memory can be released.
Link: https://lore.kernel.org/r/20200928091300.GD377727@mwanda
Fixes: bfead3b ("[SCSI] be2iscsi: Adding msix and mcc_rings V3")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 66ab2fa commit 38b2db5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3020 | 3020 | | |
3021 | 3021 | | |
3022 | 3022 | | |
| 3023 | + | |
3023 | 3024 | | |
3024 | 3025 | | |
3025 | 3026 | | |
| |||
3029 | 3030 | | |
3030 | 3031 | | |
3031 | 3032 | | |
3032 | | - | |
3033 | 3033 | | |
3034 | 3034 | | |
3035 | 3035 | | |
| |||
3086 | 3086 | | |
3087 | 3087 | | |
3088 | 3088 | | |
| 3089 | + | |
3089 | 3090 | | |
3090 | 3091 | | |
3091 | 3092 | | |
| |||
3095 | 3096 | | |
3096 | 3097 | | |
3097 | 3098 | | |
3098 | | - | |
3099 | 3099 | | |
3100 | 3100 | | |
3101 | 3101 | | |
| |||
0 commit comments