drm: Check the right variable when setting formats
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Jan 2015 06:43:35 +0000 (09:43 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 28 Jan 2015 07:58:37 +0000 (08:58 +0100)
commit944579c5a474e5faffd3ff2ee0e45eb7c53c3fd3
treee926929f5c8ff4f0ecdd3ce18e2c9b797617fb17
parent6edb2442c0fbdb149f999c96334f2a2063f65835
drm: Check the right variable when setting formats

When setting the video bus supported formats for a display device using
drm_display_info_set_bus_formats(), check for the proper variable after
duplicating memory.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_crtc.c