Paul Zimmerman
bcd2fde053
xhci: Fix an error in count_sg_trbs_needed()
...
The expression
while (running_total < sg_dma_len(sg))
does not take into account that the remaining data length can be less
than sg_dma_len(sg). In that case, running_total can end up being
greater than the total data length, so an extra TRB is counted.
Changing the expression to
while (running_total < sg_dma_len(sg) && running_total < temp)
fixes that.
This patch should be queued for stable kernels back to 2.6.31.
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@kernel.org
2011-02-20 07:01:28 -08:00
..
2010-12-10 14:18:35 -08:00
2010-11-30 16:51:21 -08:00
2011-02-03 16:57:43 -08:00
2010-11-29 18:32:47 +03:00
2010-12-16 10:05:06 -08:00
2011-01-22 18:38:58 -08:00
2011-01-22 18:38:58 -08:00
2011-01-22 18:36:43 -08:00
2011-02-03 16:57:43 -08:00
2010-08-10 14:35:35 -07:00
2010-11-16 13:36:40 -08:00
2010-12-10 14:23:32 -08:00
2011-01-22 18:48:10 -08:00
2010-10-29 19:08:44 +01:00
2011-02-01 11:06:09 +02:00
2010-03-02 14:53:17 -08:00
2011-02-03 16:57:43 -08:00
2010-09-03 17:33:40 -07:00
2010-08-10 14:35:37 -07:00
2010-12-16 10:05:06 -08:00
2010-11-26 16:48:31 +09:00
2010-11-16 13:53:29 -08:00
2010-11-11 06:24:54 -08:00
2010-11-30 16:51:21 -08:00
2010-11-30 16:51:21 -08:00
2010-12-16 10:05:06 -08:00
2010-05-20 13:21:30 -07:00
2011-01-03 16:08:59 +01:00
2010-05-20 13:21:30 -07:00
2010-05-20 13:21:30 -07:00
2010-05-20 13:21:30 -07:00
2010-07-11 21:45:40 +02:00
2011-01-03 16:08:59 +01:00
2010-05-20 13:21:46 -07:00
2011-01-22 18:38:58 -08:00
2010-08-10 14:35:37 -07:00
2010-03-02 14:52:55 -08:00
2010-11-01 15:38:34 -04:00
2010-10-22 10:22:03 -07:00
2010-10-22 10:22:14 -07:00
2010-11-24 08:21:43 +09:00
2010-08-10 14:35:40 -07:00
2010-08-23 20:50:15 -07:00
2010-08-06 09:25:50 -06:00
2011-02-04 12:38:14 -08:00
2010-10-29 19:08:44 +01:00
2010-10-29 19:08:44 +01:00
2010-04-30 09:25:12 -07:00
2009-12-15 08:53:25 -08:00
2010-11-29 18:32:47 +03:00
2010-04-22 15:18:24 -07:00
2010-10-15 15:53:27 +02:00
2011-01-07 16:58:04 -08:00
2010-08-10 14:35:37 -07:00
2010-11-11 07:14:07 -08:00
2010-03-02 14:54:59 -08:00
2010-10-29 19:08:44 +01:00
2010-12-16 13:36:12 -08:00
2010-10-22 10:21:36 -07:00
2010-08-11 18:20:56 +02:00
2010-08-06 09:25:50 -06:00
2010-03-02 14:54:59 -08:00
2010-10-08 16:21:17 +08:00
2010-03-30 22:02:32 +09:00
2010-03-02 14:54:59 -08:00
2010-11-01 17:01:27 -04:00
2010-10-22 10:21:35 -07:00
2010-11-16 13:53:29 -08:00
2010-08-10 14:35:44 -07:00
2010-10-22 10:21:36 -07:00
2010-11-01 15:38:34 -04:00
2010-10-24 13:41:39 -07:00
2010-09-16 17:16:31 +09:00
2010-10-22 10:22:11 -07:00
2010-09-29 17:20:24 +02:00
2011-02-03 16:42:17 -08:00
2010-08-10 14:25:42 +02:00
2010-11-17 08:59:32 -08:00
2010-11-16 13:54:18 -08:00
2010-08-10 14:35:38 -07:00
2010-08-10 14:35:37 -07:00
2010-12-10 14:18:36 -08:00
2010-05-20 13:21:38 -07:00
2010-03-02 14:55:02 -08:00
2010-11-19 16:23:31 -08:00
2010-12-09 11:59:42 -08:00
2010-10-22 10:22:13 -07:00
2011-02-20 07:01:28 -08:00
2011-01-14 15:51:51 -08:00
2011-01-14 15:52:00 -08:00