commit | 2c2a7552dd6465e8fde6bc9cccf8d66ed1c1eb72 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Fri Feb 14 12:21:01 2020 -0600 |
committer | Tyler Hicks <code@tyhicks.com> | Fri Feb 14 20:07:46 2020 +0000 |
tree | 5ce545b447440ebe23331c9abd06c304631a4a4e | |
parent | f8e48a8408f5e23dd514916fda128a87e34f8ffd [diff] |
ecryptfs: replace BUG_ON with error handling code In crypt_scatterlist, if the crypt_stat argument is not set up correctly, the kernel crashes. Instead, by returning an error code upstream, the error is handled safely. The issue is detected via a static analysis tool written by us. Fixes: 237fead619984 (ecryptfs: fs/Makefile and fs/Kconfig) Signed-off-by: Aditya Pakki <pakki001@umn.edu> Signed-off-by: Tyler Hicks <code@tyhicks.com>