mbox series

[0/2] thunderbolt: Fix buffers allocation for device without DisplayPort adaptors

Message ID 20220509204904.8936-1-gil.fine@intel.com
Headers show
Series thunderbolt: Fix buffers allocation for device without DisplayPort adaptors | expand

Message

Gil Fine May 9, 2022, 8:49 p.m. UTC
For the case of device without DP adaptors, we calculate incorrectly the
buffers allocation. Here we fix the calculation for this case.
In addition, we add a KUnit test for this case.

Gil Fine (2):
  thunderbolt: Fix buffers allocation for device without DisplayPort
    adaptors
  thunderbolt: Add KUnit test for buffer allocation for device without
    DisplayPort adaptors

 drivers/thunderbolt/test.c   | 92 ++++++++++++++++++++++++++++++++++++
 drivers/thunderbolt/tunnel.c |  7 ++-
 2 files changed, 97 insertions(+), 2 deletions(-)

Comments

Mika Westerberg May 12, 2022, 6:27 a.m. UTC | #1
Hi Gil,

On Mon, May 09, 2022 at 11:49:02PM +0300, Gil Fine wrote:
> For the case of device without DP adaptors, we calculate incorrectly the
> buffers allocation. Here we fix the calculation for this case.
> In addition, we add a KUnit test for this case.
> 
> Gil Fine (2):
>   thunderbolt: Fix buffers allocation for device without DisplayPort
>     adaptors
>   thunderbolt: Add KUnit test for buffer allocation for device without
>     DisplayPort adaptors

Both applied to thunderbolt.git/next, thanks!