Bug 11373 - [linux-2.6/drivers/s390/net/claw.c:286]: Memory leak: privptr
Summary: [linux-2.6/drivers/s390/net/claw.c:286]: Memory leak: privptr
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Network (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Martin Schwidefsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 10:52 UTC by Daniel Marjamäki
Modified: 2008-08-21 08:40 UTC (History)
0 users

See Also:
Kernel Version: latest git tree
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
Fix claw memory leak (2.11 KB, patch)
2008-08-21 08:40 UTC, Martin Schwidefsky
Details | Diff

Description Daniel Marjamäki 2008-08-19 10:52:53 UTC
When bailing out, there is no kfree for privptr, privptr->p_mtc_envelope nor privptr->p_env
Comment 1 Martin Schwidefsky 2008-08-21 08:40:01 UTC
Created attachment 17354 [details]
Fix claw memory leak

Move initialization of cgdev->dev.driver_data to make probe_error() do the kfree.

Note You need to log in before you can comment on or make changes to this bug.