]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: avoid variable name clipping in cb_getvar
authornicolas.le.bayon@st.com <nicolas.le.bayon@st.com>
Tue, 9 May 2017 15:58:36 +0000 (15:58 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 12 May 2017 02:03:36 +0000 (22:03 -0400)
commit9b1542e7ccc732444c8d3f1fe47cb67e226578c9
tree24330fb3a6495a1c57c01a241973310e3e014596
parentee466e9a72a30f4a53c8e6eb5b24a95565893b51
usb: gadget: avoid variable name clipping in cb_getvar

Hi,

A kind reminder to look at this patch (already reviewed by Marek and acked by Lukasz), and if possible to put it in the next pull list, or the one after is timing is too short.

Thanks in advance for your time

Best Regards
Nicolas

-----Original Message-----
From: Nicolas LE BAYON
Sent: mardi 25 avril 2017 10:18
To: Nicolas LE BAYON <nicolas.le.bayon@st.com>; u-boot@lists.denx.de; lukma@denx.de; marex@denx.de
Cc: nlebayon@gmail.com; Patrice CHOTARD <patrice.chotard@st.com>; Jean-philippe ROMAIN <jean-philippe.romain@st.com>
Subject: [U-Boot][PATCH v7] usb: gadget: avoid variable name clipping in cb_getvar

From: Nicolas Le Bayon <nicolas.le.bayon@st.com>

Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths.
Variable names are growing through releases and features. By this way, name clipping is prevented.

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Lukasz Majewski <lukma@denx.de>
drivers/usb/gadget/f_fastboot.c