ext4 crypto: replace some BUG_ON()'s with error checks
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Oct 2015 14:49:27 +0000 (10:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Oct 2015 14:49:27 +0000 (10:49 -0400)
commit687c3c36e754a999a8263745b27965128db4fee5
treeb2da54484833da41c4d112429becc0ae5df1941e
parent3684de8ca2b82180f2cdcf5fbcfd3d29ef0afaf8
ext4 crypto: replace some BUG_ON()'s with error checks

Buggy (or hostile) userspace should not be able to cause the kernel to
crash.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/crypto.c
fs/ext4/crypto_fname.c
fs/ext4/crypto_key.c
fs/ext4/crypto_policy.c