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)
commit93bf344f66995ef816bd63c165fa9ac1ea4fcb3d
tree9328508dcab24f59a83013a9613cba646ce88776
parent8e1de7042596abb7cb277ea751fc13a4c2b65aea
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