OSDN Git Service

drm/i915/sdvo: Reduce the size of the on stack buffers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Jan 2020 18:12:34 +0000 (20:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2020 15:13:32 +0000 (17:13 +0200)
commitcb70b713a840a6fbdeeb774d1de4be35b0c18418
tree3f99bd086cd0b636cda21dafd42f98d53d6ca970
parent691313ea621482aa3da9721770b2642f789f63e5
drm/i915/sdvo: Reduce the size of the on stack buffers

The strings we want to print to the on stack buffers should
be no more than
8 * 3 + strlen("(GET_SCALED_HDTV_RESOLUTION_SUPPORT)") + 1 = 61
bytes. So let's shrink the buffers down to 64 bytes.

Also switch the BUG_ON()s to WARN_ON()s if I made a mistake in
my arithmentic.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200108181242.13650-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_sdvo.c