]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: rndis: fix Missing req->context assignment
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 10 Feb 2012 08:54:51 +0000 (09:54 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Apr 2012 16:11:50 +0000 (19:11 +0300)
commitf135617224b4a1113b26b8ee5877e94f38e40d1e
tree6877b3c8fcae57bc2806ab5e6d624509ee17f6db
parentad579699c4f0274bf522a9252ff9b20c72197e48
usb: gadget: rndis: fix Missing req->context assignment

It is crucial to assign each req->context value to struct rndis.

The problem happens for multi function gadget (g_multi) when multiple
functions are calling common usb_composite_dev control request.

It might happen that *_setup method from one usb function will
alter some fields of this common request issued by other USB
function.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_rndis.c