Skip to content
Commit 1d2c0c56 authored by Dan Carpenter's avatar Dan Carpenter Committed by Roland Scheidegger
Browse files

drm/vmwgfx: Use correct vmw_legacy_display_unit pointer



The "entry" pointer is an offset from the list head and it doesn't
point to a valid vmw_legacy_display_unit struct.  Presumably the
intent was to point to the last entry.

Also the "i++" wasn't used so I have removed that as well.

Fixes: d7e1958d ("drm/vmwgfx: Support older hardware.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
Signed-off-by: default avatarRoland Scheidegger <sroland@vmware.com>
parent 4f88b4cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment