Skip to content

Commit

Permalink
USB: isd200: fix memory leak in isd200_get_inquiry_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boaz Harrosh authored and gregkh committed Mar 25, 2008
1 parent b483b6a commit ba2ef3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/storage/isd200.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit ba2ef3b

Please sign in to comment.