udldrmfb: udl_get_edid: usb_control_msg buffer must not be on the stack
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 Jan 2013 11:08:57 +0000 (12:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:50:55 +0000 (08:50 -0800)
commitb756902ec26992d285937d1b706fc50c9743903d
treeff5066536956a24bff07259555b34e3ad11a0007
parentc876baa8a8eda4a9ffcc6bdc144bb9d0fc3397a0
udldrmfb: udl_get_edid: usb_control_msg buffer must not be on the stack

commit 242187b362555849e8c971dfbbfd55f8bd9fa717 upstream.

The buffer passed to usb_control_msg may end up in scatter-gather list, and
may thus not be on the stack. Having it on the stack usually works on x86, but
not on other archs.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/udl/udl_connector.c