]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Fix buffer allocation of devices with no DisplayPort adapters
authorGil Fine <gil.fine@intel.com>
Mon, 9 May 2022 20:49:03 +0000 (23:49 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 12 May 2022 06:22:11 +0000 (09:22 +0300)
commit48e5954ed42bace53b14b13e5e1323517049862c
tree9328508dcab24f59a83013a9613cba646ce88776
parent9941a3e83b9696115d827b23791017b888c35997
thunderbolt: Fix buffer allocation of devices with no DisplayPort adapters

For the case of a device without DisplayPort adapters we calculate
incorrectly the amount of buffers. Fix the calculation for this case.

Signed-off-by: Gil Fine <gil.fine@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tunnel.c