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


Groups > linux.kernel > #1586569

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

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate
Date 2017-02-23 01:20 +0100
Message-ID <tdPiy-1nW-7@gated-at.bofh.it> (permalink)
References <t6S1Q-698-25@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


>>>>> "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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web