Skip to contentSkip to conversation

scsi: sg: fix memory leak in sg_build_indirect

PATCH Markus Elfring 2 participants 2 messages Apr 13, 2020 – Apr 14, 2020 SCSI

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

Fix a memory leak when there have failed, that we should free the pages under the condition rem_sz > 0.

I suggest to improve the change description.

* Please use an imperative wording.

* Will the tag “Fixes” become relevant?

Regards,
Markus

#1 lore raw
Quoted 6 lines · Markus Elfring
Quoted 2 lines

Fix a memory leak when there have failed, that we should free the pages under the condition rem_sz > 0.

I suggest to improve the change description.

* Please use an imperative wording.

nominative, vocative, accusative, genitive ...

I have made some comment suggestions in response to the original posts from the author.

Quoted 1 line

* Will the tag “Fixes” become relevant?

Yes, both patches from the author are fixes. These leaks would typically appear on a system under resource pressure (specifically low memory) and would tend to make the situation worse.

Doug Gilbert