[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151228161054.GR5003@mtj.duckdns.org>
Date: Mon, 28 Dec 2015 11:10:54 -0500
From: Tejun Heo <tj@...nel.org>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>
Cc: linux-ide@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: sata_mv: Another source code review around exception handling?
Hello,
On Fri, Dec 25, 2015 at 05:00:30PM +0100, SF Markus Elfring wrote:
> The value "-ENOMEM" will be returned if one of these function calls failed.
> Can it be that any system resources (like memory) are not appropriately
> released if any calls of this sequence succeeded before the failure?
Most of those are managed resources (devm_, pcim_ and so on) and are
released automatically when the driver detaches from the device.
> Is the use of the single jump label "err" also suspicious here?
And that exit label deal with resources which aren't managed - some
just haven't grown managed variant yet while others don't fit the
model too well.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists