diff options
author | Kees Cook <[email protected]> | 2013-08-13 15:02:27 -0700 |
---|---|---|
committer | Tyler Hicks <[email protected]> | 2013-09-06 16:58:18 -0700 |
commit | cb69f36ba1f8d5e73c46538e84a88178fb17f23d (patch) | |
tree | df95c5e4d7c9697d22d21653571cc2f5960b5256 /drivers/message/fusion/lsi/mpi_raid.h | |
parent | e6cbd6a44d8e263073808da9f295e502d15dc3fe (diff) |
ecryptfs: avoid ctx initialization race
It might be possible for two callers to race the mutex lock after the
NULL ctx check. Instead, move the lock above the check so there isn't
the possibility of leaking a crypto ctx. Additionally, report the full
algo name when failing.
Signed-off-by: Kees Cook <[email protected]>
[tyhicks: remove out label, which is no longer used]
Signed-off-by: Tyler Hicks <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions