[PATCH 2/4] drivers/macintosh/smu.c: add missing of_node_put
Stephen Rothwell
sfr at canb.auug.org.au
Mon Jun 9 23:32:01 EST 2008
Hi Julia,
On Mon, 9 Jun 2008 15:22:53 +0200 (CEST) Julia Lawall <julia at diku.dk> wrote:
>
> > However, the error handling in that routine (smu_init) needs much more
> > work.
>
> Indeed, the smu = NULL at the end of the function seems a bit brutal - a
> lot of allocated data ends up not getting freed. I can try to do
> something about it. Did you see something else?
There are paths to fail: where you would need to of_node_put smu->db_node or
smu->msg_node (or both) and undo the smu->db_buf ioremap.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080609/4b2a5481/attachment.pgp>
More information about the Linuxppc-dev
mailing list