Skip to content
Snippets Groups Projects
Commit 38b4a3e1 authored by Hans de Goede's avatar Hans de Goede Committed by Marek Vasut
Browse files

musb: sunxi: Do not allocate musb struct multiple times


The probe function of the musb host driver can be called multiple
times. The code assumes that it can save the pointer to the allocated
musb struct in the driver model priv_auto_alloc data, but this data
gets free-ed on a probe failure or on removal, so we must save the
pointer elsewhere.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent cf125473
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment