Files
twx-linux/include/linux
Alice Michael d5be9df067 virtchnl: Fix off by one error
[ Upstream commit 843faff87a ]

When calculating the valid length for a VIRTCHNL_OP_ENABLE_CHANNELS
message, we accidentally allowed messages with one extra
virtchnl_channel_info structure on the end. This happened due
to an off by one error, because we forgot that valid_len already
accounted for one virtchnl_channel_info structure, so we need to
subtract one from the num_tc value.

Signed-off-by: Alice Michael <alice.michael@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-13 08:51:18 +01:00
..
2019-12-13 08:51:18 +01:00
2019-04-20 09:16:05 +02:00
2019-10-05 13:10:03 +02:00
2019-07-03 13:14:48 +02:00
2018-08-22 10:52:48 -07:00
2019-08-09 17:52:28 +02:00
2019-11-24 08:19:14 +01:00
2019-05-31 06:46:18 -07:00
2019-10-17 13:45:42 -07:00
2018-08-08 11:06:20 +02:00
2018-08-22 10:52:45 -07:00
2018-08-22 10:52:46 -07:00
2019-06-11 12:20:52 +02:00
2018-08-02 17:33:06 -04:00
2018-08-02 17:16:05 +02:00
2019-11-10 11:27:54 +01:00
2018-08-16 12:14:42 -07:00
2019-04-17 08:38:45 +02:00
2018-11-13 11:08:51 -08:00
2019-06-17 19:51:56 +02:00