Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586569 > unrolled thread

Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate

Started by"Martin K. Petersen" <martin.petersen@oracle.com>
First post2017-02-23 01:20 +0100
Last post2017-02-23 01:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-02-23 01:20 +0100

#1586569 — Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate

From"Martin K. Petersen" <martin.petersen@oracle.com>
Date2017-02-23 01:20 +0100
SubjectRe: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate
Message-ID<tdPiy-1nW-7@gated-at.bofh.it>
>>>>> "Colin" == Colin King <colin.king@canonical.com> writes:

Colin> On an allocation failure of gd, the current exit path is via
Colin> out_free_devt which leaves sdpk still allocated and hence it gets
Colin> leaked. Fix this by correcting the order of resource free'ing
Colin> with a change in the error exit path labels.

Applied to 4.11/scsi-fixes.

-- 
Martin K. Petersen	Oracle Linux Engineering

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web