diff options
author | Gary R Hook <gary.hook@amd.com> | 2019-08-20 01:23:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 11:20:59 +0300 |
commit | d204cf4f3169e33111f1b1e51000988108558fe9 (patch) | |
tree | cc0c29522a03dda38883715b43f516ef54e3d253 /net/mac80211/cfg.c | |
parent | 573710846402a868f56fea58be26b313f28ccf07 (diff) | |
download | linux-d204cf4f3169e33111f1b1e51000988108558fe9.tar.xz |
crypto: ccp - Ignore unconfigured CCP device on suspend/resume
commit 5871cd93692c8071fb9358daccb715b5081316ac upstream.
If a CCP is unconfigured (e.g. there are no available queues) then
there will be no data structures allocated for the device. Thus, we
must check for validity of a pointer before trying to access structure
members.
Fixes: 720419f01832f ("crypto: ccp - Introduce the AMD Secure Processor device")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac80211/cfg.c')
0 files changed, 0 insertions, 0 deletions