]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:46:25 +0000 (08:46 -0800)
commit4313eb6bba9624764b6d8192282eb36f7a557a5a
tree4816711c03672fcc779bb3c7215094f1ab7bee65
parent513c651beebdffa05fd7f4fa0221ea18edba6ad3
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