[U-Boot] [PATCH 1/3] musb: sunxi: Do not allocate musb struct multiple times

Peter Korsgaard peter at korsgaard.com
Sat Apr 2 20:57:06 CEST 2016


>>>>> "Hans" == Hans de Goede <hdegoede at redhat.com> writes:

 > The probe function of the musb host driver can be called multiple
 > times. The code assumes that it can safe 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 safe the
 > pointer elsewhere.

s/safe/save/ (twice).

Otherwise it looks sensibe to me.

-- 
Bye, Peter Korsgaard


More information about the U-Boot mailing list