Michal Nazarewicz
06cd928b0c
usb: gadget: f_midi: fix in_last_port looping logic
...
In general case, all of midi->in_port pointers may be non-NULL which
implies that the ‘if (\!port)’ condition will never execute thus never
zeroing midi->in_last_port. Fix by rewriting the loop such that the
field is set to zero if \!port or end of loop has been reached.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2016-03-04 15:14:33 +02:00
..
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:32 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:26 +02:00
2015-07-31 09:01:19 -05:00
2016-03-04 15:14:33 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2016-03-04 15:14:23 +02:00
2015-09-27 10:54:31 -05:00
2014-09-09 09:49:41 -05:00
2015-12-15 09:12:41 -06:00
2015-12-20 19:40:34 -08:00
2016-02-03 13:36:04 -08:00
2015-05-21 16:29:14 -05:00
2015-06-23 18:00:05 -04:00
2015-07-29 09:59:19 -05:00
2015-12-20 19:40:41 -08:00
2015-10-13 22:14:18 -07:00
2015-12-16 10:07:30 -06:00
2015-08-06 09:35:20 -05:00
2015-01-27 09:34:59 -06:00
2014-11-06 16:18:19 -06:00
2014-11-05 13:37:17 -06:00
2015-03-10 15:33:41 -05:00
2015-05-07 13:47:17 -05:00
2015-12-22 11:49:39 -06:00
2015-12-20 19:40:34 -08:00
2015-01-15 09:41:48 -06:00
2015-08-06 09:35:20 -05:00
2014-08-20 14:04:42 -05:00
2015-01-12 12:13:26 -06:00
2015-12-08 08:53:43 -06:00
2015-01-12 12:13:26 -06:00
2015-12-18 13:53:31 -02:00
2015-10-01 09:04:43 -03:00
2015-04-21 09:44:55 -03:00
2014-09-09 09:49:12 -05:00
2015-04-21 09:44:55 -03:00
2014-09-09 09:49:12 -05:00
2015-04-27 15:48:11 -05:00