diff options
author | 2014-01-20 19:54:18 +0100 | |
---|---|---|
committer | 2014-03-16 12:11:01 +0100 | |
commit | 2b932d8ef009f37d397c211b1dc5d0b056f6ef64 (patch) | |
tree | 9313f2bcbe28ad619fe25608bf80005500d6232e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/udl: fix error-path when damage-req fails (diff) | |
download | linux-dev-2b932d8ef009f37d397c211b1dc5d0b056f6ef64.tar.xz linux-dev-2b932d8ef009f37d397c211b1dc5d0b056f6ef64.zip |
drm/udl: fix Bpp calculation in dumb_create()
Probably a typo.. we obviously need "(bpp + 7) / 8" instead of
"(bpp + 1) / 8". Unlikely to be hit in any sane code, but lets be safe.
Use DIV_ROUND_UP() to avoid the problem entirely and make the core more
readable.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions