drm/vmwgfx: Fix a potential integer overflow
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 19 Jan 2017 19:01:04 +0000 (11:01 -0800)
committerSinclair Yeh <syeh@vmware.com>
Fri, 27 Jan 2017 04:52:51 +0000 (20:52 -0800)
commit0f580386b6ad295c04c1b32120826494f8a29c1c
tree32e040c9ee945d4a52c9bad76ee031d89e538a8c
parent0fd67c1cb80231ff18633d5a22f56efe1f6ee917
drm/vmwgfx: Fix a potential integer overflow

Found by coverity.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c