Files
linux/drivers/of
Colin Cross a2acc58bc7 of: fix CONFIG_CMDLINE_EXTEND
strlcat takes the size of the buffer, not the number of characters
to concatenate.  If the size of the device tree command line p is
larger than the CONFIG_CMDLINE string data, then strcat(data, p, l)
will hit a BUG_ON because strlen(data) > l.

Replace the second strlcat with a strncpy plus a manual null
termination.

Also rearrange the code to reduce indent depth to make it more
readable, and replace data with a char *cmdline to avoid extra
casts.

Signed-off-by: Colin Cross <ccross@android.com>
2014-04-17 20:02:30 -07:00
..
2013-01-09 11:36:38 +01:00
2013-06-13 22:12:14 +01:00
2014-04-17 20:02:30 -07:00
2012-10-17 15:53:02 -05:00
2012-12-07 09:17:55 -08:00
2012-07-10 10:32:06 -05:00