Matt Roper
9ca2cc12b4
kms_cursor_crc: Kernel now checks for integer overflow
...
As of kernel commit
commit a679064a7e9e8799177a64a31668a34a1bc6a4f1
Author: Matt Roper <matthew.d.roper@intel.com>
Date: Fri Jan 30 16:22:37 2015 -0800
drm/i915: Switch planes from transitional helpers to full atomic helpers
the kernel now checks for cursor coordinates that would result in
integer overflow and returns -ERANGE, similar to the checking that was
already done for other plane types. We update kms_cursor_crc here to
reflect this small behavior change:
* Check for success at extreme boundary conditions INT_MAX-{width,height}
rather than INT_MAX
* Add new check for success at SHRT_MAX; if the driver were to
internally use short values and overflow, we could have the cursor
reappear on the screen.
* Add a test for failure with proper error code at INT_MAX-{width,height}+1
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
2015-02-10 09:20:39 -08:00
..
2015-01-06 09:29:45 +01:00
2014-12-10 17:11:35 +00:00
2014-12-10 17:11:35 +00:00
2014-12-12 12:18:22 +00:00
2012-04-10 16:23:18 +02:00
2015-01-06 09:29:45 +01:00
2014-11-06 13:24:29 +00:00
2014-11-06 13:24:29 +00:00
2014-11-06 13:24:29 +00:00
2013-08-21 23:18:00 +02:00
2013-07-01 18:54:40 +02:00
2013-07-01 18:54:40 +02:00
2015-01-06 09:29:45 +01:00
2014-11-06 13:24:30 +00:00
2014-12-08 07:58:13 +00:00
2014-08-30 11:44:51 +01:00
2014-03-22 21:34:29 +01:00
2014-03-22 21:34:29 +01:00
2014-12-04 16:07:55 +00:00
2013-11-04 19:49:10 +01:00
2014-12-09 17:10:42 +00:00
2014-09-06 17:26:21 +01:00
2015-01-19 09:47:03 +00:00
2014-05-14 00:36:04 +02:00
2014-12-08 19:26:39 +02:00
2015-01-19 09:47:03 +00:00
2014-08-30 11:44:51 +01:00
2014-08-30 11:44:51 +01:00
2014-08-30 11:44:51 +01:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:48:06 +00:00
2014-05-14 00:36:04 +02:00
2014-12-04 16:07:55 +00:00
2014-07-12 09:13:12 +01:00
2015-01-22 10:01:28 +01:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-05-14 09:56:53 +02:00
2014-12-04 16:07:55 +00:00
2015-01-06 10:07:31 +00:00
2014-12-04 16:07:55 +00:00
2015-01-22 09:27:52 +01:00
2015-01-07 17:35:14 +00:00
2015-01-07 17:35:14 +00:00
2014-12-04 16:07:55 +00:00
2015-01-14 14:34:16 +00:00
2014-12-17 09:05:10 +01:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-05-14 00:36:04 +02:00
2015-01-22 09:27:52 +01:00
2014-11-12 13:43:04 +01:00
2014-05-14 00:36:04 +02:00
2014-11-04 12:08:50 +00:00
2015-01-06 09:29:45 +01:00
2014-12-04 16:07:55 +00:00
2015-01-15 12:23:04 +00:00
2014-05-14 00:36:04 +02:00
2014-12-04 10:17:24 +08:00
2014-12-04 16:07:55 +00:00
2014-09-03 12:03:56 +01:00
2015-01-06 09:29:45 +01:00
2014-10-02 11:34:55 +02:00
2014-12-04 16:07:55 +00:00
2014-05-14 00:36:04 +02:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-11-04 12:08:50 +00:00
2014-12-04 16:07:55 +00:00
2015-01-22 09:49:17 +01:00
2014-11-04 12:08:50 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-10-02 11:34:55 +02:00
2015-01-07 17:35:14 +00:00
2014-05-14 00:36:04 +02:00
2014-11-04 12:08:50 +00:00
2014-05-14 00:36:04 +02:00
2014-05-14 00:36:04 +02:00
2014-06-13 18:27:59 +02:00
2014-12-04 16:07:55 +00:00
2015-01-07 17:35:14 +00:00
2014-12-04 16:07:55 +00:00
2015-02-09 14:20:44 -08:00
2014-10-02 11:34:55 +02:00
2014-10-02 11:34:55 +02:00
2015-01-15 12:23:04 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-08-30 11:44:51 +01:00
2015-01-15 12:23:04 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-05-22 09:07:45 +02:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-08 19:26:39 +02:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-05-14 09:56:53 +02:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2015-01-15 09:41:03 +00:00
2014-12-04 16:07:55 +00:00
2015-01-27 09:40:27 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2015-02-04 10:29:12 +01:00
2014-10-06 18:58:03 +01:00
2014-10-23 20:41:18 +03:00
2014-12-04 16:07:55 +00:00
2014-10-02 11:34:55 +02:00
2014-10-02 11:34:55 +02:00
2014-10-02 11:34:55 +02:00
2014-10-02 11:34:55 +02:00
2014-10-02 11:34:55 +02:00
2014-12-04 16:07:55 +00:00
2014-12-04 16:07:55 +00:00
2014-09-30 16:46:28 +03:00
2015-02-10 09:20:39 -08:00
2014-11-24 16:29:27 +01:00
2014-11-06 13:24:29 +00:00
2014-11-06 13:24:29 +00:00
2014-12-04 16:07:55 +00:00
2015-01-06 09:29:45 +01:00
2014-12-04 16:07:55 +00:00
2014-12-09 20:41:18 +02:00
2014-11-24 16:29:27 +01:00
2015-01-20 11:36:10 +01:00
2014-11-04 12:08:50 +00:00
2014-11-24 16:29:27 +01:00
2014-11-18 15:17:43 +01:00
2014-11-24 16:29:27 +01:00
2014-09-30 16:46:28 +03:00
2014-11-06 13:25:03 +00:00
2013-11-04 19:49:10 +01:00
2014-11-24 16:29:27 +01:00
2015-01-06 09:29:45 +01:00
2015-01-06 09:29:45 +01:00
2014-05-16 10:33:28 +02:00
2012-08-08 08:51:55 +02:00
2014-09-30 16:46:28 +03:00
2014-10-14 10:22:21 -07:00
2014-11-14 00:18:30 +02:00
2014-12-08 12:36:59 +02:00
2014-05-14 10:44:16 +02:00
2014-08-30 11:44:51 +01:00
2014-11-04 17:25:33 +01:00
2015-01-29 16:40:06 +02:00
2014-03-22 21:34:29 +01:00
2014-09-30 17:54:02 +01:00
2013-11-01 21:10:59 +01:00
2014-07-23 21:03:07 +02:00
2014-06-13 18:27:59 +02:00
2014-11-06 13:24:30 +00:00
2012-01-24 10:50:10 +01:00
2014-07-23 21:03:07 +02:00
2012-01-15 16:05:43 +01:00