Files
linux/drivers
Mark Brown 0bdf7953e7 regmap: debugfs: Don't bother actually printing when calculating max length
commit 176fc2d577 upstream.

The in kernel snprintf() will conveniently return the actual length of
the printed string even if not given an output beffer at all so just do
that rather than relying on the user to pass in a suitable buffer,
ensuring that we don't need to worry if the buffer was truncated due to
the size of the buffer passed in.

Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-22 14:37:51 -07:00
..
2013-12-08 07:29:25 -08:00
2013-05-17 14:31:05 -04:00
2015-08-16 20:51:39 -07:00
2015-09-21 10:00:07 -07:00
2015-05-06 21:56:25 +02:00