Re: [PATCH] common: oftree: trim leading spaces from bootargs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 20, 2020 at 05:07:20PM +0100, Clement Leger wrote:
> When barebox concatenates all dynamic bootargs string for linux, if they
> are empty, the resulting string might be composed of only spaces.
> Currently, there is no check for such string and it leads to
> overwriting bootargs in the device tree by an empty string. To avoid
> this behavior, use skip_spaces to trim leading spaces and then check if
> the string is empty. If so, simply returns and don't patch device tree
> bootargs.
> 
> Signed-off-by: Clement Leger <cleger@xxxxxxxxx>
> ---
>  common/oftree.c | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux