From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Sat, 2 Apr 2016 23:39:29 +0200 Subject: [U-Boot] [PATCH 1/3] musb: sunxi: Do not allocate musb struct multiple times In-Reply-To: <87fuv3u9dp.fsf@dell.be.48ers.dk> References: <1459622771-12704-1-git-send-email-hdegoede@redhat.com> <87fuv3u9dp.fsf@dell.be.48ers.dk> Message-ID: <57003C11.1080301@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 04/02/2016 08:57 PM, Peter Korsgaard wrote: >>>>>> "Hans" == Hans de Goede 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). Thanks, fixed in my tree. Regards, Hansd