OSDN Git Service

Crypto/chcr: Checking cra_refcnt before unregistering the algorithms
authorAyush Sawal <ayush.sawal@chelsio.com>
Tue, 9 Jun 2020 21:24:32 +0000 (02:54 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2020 00:05:02 +0000 (17:05 -0700)
commit8b9914cd723bfce8dbff65bd135563f887dcb19d
tree8f73a494b474cce6d80463778fff848b9962cdab
parentfb90a1c85d8f08c85d9fd5729bfdeb786119f219
Crypto/chcr: Checking cra_refcnt before unregistering the algorithms

This patch puts a check for algorithm unregister, to avoid removal of
driver if the algorithm is under use.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chcr_algo.c