mbox series

[net-next,0/2] Fixing issues in dma mapping and driver removal

Message ID 20200609212432.2467-1-ayush.sawal@chelsio.com
Headers show
Series Fixing issues in dma mapping and driver removal | expand

Message

Ayush Sawal June 9, 2020, 9:24 p.m. UTC
Patch 1: This fixes the kernel panic which occurs due to the accessing
of a zero length sg.

Patch 2: Avoiding unregistering the algorithm if cra_refcnt is not 1.

Ayush Sawal (2):
  Crypto/chcr: Calculate src and dst sg lengths separately for dma map
  Crypto/chcr: Checking cra_refcnt before unregistering the algorithms

 drivers/crypto/chelsio/chcr_algo.c | 81 ++++++++++++++++++++++--------
 1 file changed, 59 insertions(+), 22 deletions(-)

Comments

David Miller June 11, 2020, 12:05 a.m. UTC | #1
From: Ayush Sawal <ayush.sawal@chelsio.com>
Date: Wed, 10 Jun 2020 02:54:30 +0530

> Patch 1: This fixes the kernel panic which occurs due to the accessing
> of a zero length sg.
> 
> Patch 2: Avoiding unregistering the algorithm if cra_refcnt is not 1.
> 
> Ayush Sawal (2):
>   Crypto/chcr: Calculate src and dst sg lengths separately for dma map
>   Crypto/chcr: Checking cra_refcnt before unregistering the algorithms

Series applied, thanks.

Maybe we can start handling these changes via the crypto tree at some
point?
Herbert Xu June 11, 2020, 3:49 a.m. UTC | #2
On Wed, Jun 10, 2020 at 05:05:43PM -0700, David Miller wrote:
>
> Maybe we can start handling these changes via the crypto tree at some
> point?

Yes that's good point Dave.  How about we push changes for chcr_algo
via the crypto tree and the rest via netdev?

Thanks,