Dan Carpenter
b94605f5cb
fpga: prevent integer overflow in dfl_feature_ioctl_set_irq()
...
[ Upstream commit 939bc5453b8cbdde9f1e5110ce8309aedb1b501a ]
The "hdr.count * sizeof(s32)" multiplication can overflow on 32 bit
systems leading to memory corruption. Use array_size() to fix that.
Fixes: 322b598be4d9 ("fpga: dfl: introduce interrupt trigger setting API")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/YxBAtYCM38dM7yzI@kili
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:35:07 +02:00
..
2021-07-21 19:54:21 -07:00
2018-10-16 11:13:50 +02:00
2021-07-24 15:10:30 -07:00
2018-10-16 11:13:50 +02:00
2020-12-01 18:49:32 +01:00
2022-08-17 14:23:41 +02:00
2020-12-01 18:49:32 +01:00
2020-06-18 18:12:06 -07:00
2021-03-24 11:15:04 -07:00
2021-03-24 11:15:04 -07:00
2021-03-24 11:15:04 -07:00
2018-10-16 11:13:50 +02:00
2020-07-06 21:35:42 -07:00
2020-07-06 21:35:42 -07:00
2021-07-24 15:10:31 -07:00
2021-07-27 11:05:16 -07:00
2021-07-21 19:54:21 -07:00
2018-11-26 20:47:10 +01:00
2020-04-28 15:49:28 +02:00
2021-07-21 19:54:21 -07:00
2021-07-24 15:10:30 -07:00
2022-10-26 12:35:07 +02:00
2021-07-29 12:54:10 -07:00
2021-07-21 19:54:22 -07:00
2021-07-24 15:10:31 -07:00
2021-06-15 09:29:55 +02:00
2021-09-27 14:00:41 -07:00
2021-08-05 14:26:03 +02:00
2021-09-15 14:01:24 -07:00
2021-07-21 13:14:09 +02:00
2021-06-09 14:51:25 +02:00
2020-12-01 18:49:32 +01:00
2021-07-24 15:10:31 -07:00
2021-07-24 15:10:31 -07:00
2021-07-27 18:46:03 +02:00
2021-07-24 15:10:30 -07:00
2021-07-24 15:10:30 -07:00
2021-07-21 19:54:21 -07:00
2021-07-24 15:10:30 -07:00