Bryn M. Reeves
98dbc9c6c6
dm: fix rq_end_stats() NULL pointer in dm_requeue_original_request()
...
An "old" (.request_fn) DM 'struct request' stores a pointer to the
associated 'struct dm_rq_target_io' in rq->special.
dm_requeue_original_request(), previously named
dm_requeue_unmapped_original_request(), called dm_unprep_request() to
reset rq->special to NULL. But rq_end_stats() would go on to hit a NULL
pointer deference because its call to tio_from_request() returned NULL.
Fix this by calling rq_end_stats() _before_ dm_unprep_request()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com >
Signed-off-by: Mike Snitzer <snitzer@redhat.com >
Fixes: e262f34741 ("dm stats: add support for request-based DM devices")
Cc: stable@vger.kernel.org # 4.2+
2016-03-14 17:04:34 -04:00
..
2016-01-21 18:19:38 -08:00
2015-12-14 09:26:01 -05:00
2016-01-24 18:13:37 -08:00
2015-10-12 01:32:05 -05:00
2015-07-29 08:55:15 -06:00
2015-05-29 14:19:06 -04:00
2013-11-23 22:33:55 -08:00
2016-01-12 17:11:47 -08:00
2014-01-14 23:23:03 -05:00
2014-01-14 23:23:04 -05:00
2014-11-10 15:25:30 -05:00
2016-03-10 17:12:12 -05:00
2016-03-10 17:12:12 -05:00
2015-11-04 21:19:53 -08:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:11 -05:00
2014-01-16 13:44:11 -05:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:12 -05:00
2016-02-22 22:34:37 -05:00
2016-02-22 22:34:37 -05:00
2015-10-31 19:06:02 -04:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2016-02-22 22:34:37 -05:00
2016-01-04 10:29:12 -05:00
2016-02-22 22:34:37 -05:00
2015-11-06 17:50:42 -08:00
2015-10-31 19:06:03 -04:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2016-02-22 22:34:37 -05:00
2012-07-30 17:25:16 -07:00
2016-03-10 17:12:04 -05:00
2011-10-31 19:31:18 -04:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:37 -05:00
2015-10-02 12:02:31 -04:00
2015-10-31 19:06:01 -04:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-01-08 20:03:05 -05:00
2016-01-08 20:03:05 -05:00
2016-03-10 17:12:09 -05:00
2015-08-18 17:20:03 -04:00
2015-06-17 12:40:40 -04:00
2015-09-02 16:35:26 -07:00
2015-10-31 19:06:06 -04:00
2015-04-15 12:10:17 -04:00
2016-03-10 17:12:09 -05:00
2016-02-22 11:06:21 -05:00
2016-03-10 17:12:09 -05:00
2015-06-11 17:13:04 -04:00
2016-03-11 16:15:22 -05:00
2011-10-31 19:31:19 -04:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2015-07-29 08:55:15 -06:00
2016-03-14 17:04:34 -04:00
2016-02-22 22:34:37 -05:00
2016-01-20 13:52:20 -08:00
2016-03-10 17:12:11 -05:00
2015-08-13 12:31:57 -06:00
2011-10-11 16:48:54 +11:00
2016-03-10 17:12:08 -05:00
2016-01-24 18:13:18 -08:00
2016-01-06 11:38:57 +11:00
2016-01-15 12:28:00 -08:00
2016-01-15 12:28:00 -08:00
2016-01-14 11:49:57 +11:00
2011-10-11 16:48:57 +11:00
2015-12-08 14:59:19 +01:00
2015-08-13 12:31:57 -06:00
2016-01-20 13:52:20 -08:00
2015-10-12 01:32:05 -05:00
2016-01-14 11:49:43 +11:00
2016-01-20 13:52:20 -08:00
2015-11-01 13:48:29 +11:00
2016-01-20 13:52:20 -08:00
2015-08-31 19:43:45 +02:00