commit | 7f6e3aad5ab31c310b36bf0edcd305305b20e2a8 | [log] [tgz] |
---|---|---|
author | Dan Streetman <ddstreet@ieee.org> | Wed Jul 22 14:26:33 2015 -0400 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jul 23 18:14:30 2015 +0800 |
tree | fbf9d3ddc0e990c2dac76192b7b346a7fdbf6b3d | |
parent | 90fd73f912f0897bc22351b55925a4962c045086 [diff] |
crypto: nx - move kzalloc() out of spinlock Move the kzalloc() calls in nx842_probe() and nx842_OF_upd() to the top of the functions, before taking the devdata spinlock. Since kzalloc() without GFP_ATOMIC can sleep, it can't be called while holding a spinlock. Move the calls to before taking the lock. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>