]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf69aa1e9984763864d8f7ce4998def9d41069ff9
tree8f73a494b474cce6d80463778fff848b9962cdab
parente3b5f26ba8468c568a2437eaaf6c2c21a2d23046
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