Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba2ef3b3 authored by Boaz Harrosh's avatar Boaz Harrosh Committed by Greg Kroah-Hartman
Browse files

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: default avatarBoaz Harrosh <bharrosh@panasas.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b483b6aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}