mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
USB: isd200: fix memory leak in isd200_get_inquiry_data
If the inquiry fails then the info structure on us->extra was not freed. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b483b6aaa5
commit
ba2ef3b36c
1 changed files with 1 additions and 0 deletions
|
@ -1230,6 +1230,7 @@ static int isd200_get_inquiry_data( struct us_data *us )
|
|||
|
||||
/* Free driver structure */
|
||||
us->extra_destructor(info);
|
||||
kfree(info);
|
||||
us->extra = NULL;
|
||||
us->extra_destructor = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue