Bug 11373

Summary: [linux-2.6/drivers/s390/net/claw.c:286]: Memory leak: privptr
Product: Drivers Reporter: Daniel Marjamäki (danielm77)
Component: NetworkAssignee: Martin Schwidefsky (schwidefsky)
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: latest git tree Subsystem:
Regression: --- Bisected commit-id:
Attachments: Fix claw memory leak

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.