Skip to content
Snippets Groups Projects
Forked from drm / kernel
Source project has a limited visibility.
Mauro Carvalho Chehab's avatar
Mauro Carvalho Chehab authored
The logic which sets the max_length is wrong: it shall always use
sheet[0], as this may be the only row on a table.

Yet, it might be possible that a caller to test_to_xls() would
have been sending a completely empty sheet. While this doesn't
occur currently, it doesn't hurt adding an explicit check,
reporting a warning if this is indeed the case.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
65f9348b
History
Name Last commit Last update
..