From: Dan Carpenter Date: Mon, 24 Aug 2015 19:54:21 +0000 (+0300) Subject: fbdev: fix snprintf() limit in show_bl_curve() X-Git-Tag: omap-for-v4.3/fixes-rc1~59^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4df20474ff76b4dbab7d991de271820383995b8;p=pandora-kernel.git fbdev: fix snprintf() limit in show_bl_curve() The limit should be "PAGE_SIZE - len" instead of PAGE_SIZE. Also let's use scnprintf() because snprintf() returns the number of bytes which would have been printed if there were space and scnprintf() returns the number of bytes actually printed. I don't think we are ever going to actually hit this limit in real life. Signed-off-by: Dan Carpenter Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed