commit | 86f8ef2c4802ac9dbe0c8c1c12670bd915a13013 | [log] [tgz] |
---|---|---|
author | Tilman Schmidt <tilman@imap.cc> | Sat Oct 11 13:46:30 2014 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 14 15:05:35 2014 -0400 |
tree | ea00760072953a797e6d42ef0ce252cd9556d937 | |
parent | 340184b35ac8786bdb574d2c8ce8e4f1269ec4da [diff] |
isdn/gigaset: fix usb_gigaset write_cmd result race In usb_gigaset function gigaset_write_cmd(), the length field of the command buffer structure could be cleared by the transmit tasklet before it was used for the function's return value. Fix by copying to a local variable before scheduling the tasklet. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>