Messages in this thread Patch in this message | | | From | Jan Blunck <> | Subject | [PATCH 11/15] zcrypt: Use nonseekable_open() | Date | Fri, 20 Nov 2009 17:40:41 +0100 |
| |
zcrypt doesn't even allow to read/write the files it opens. So seeking on it shouldn't fall back to defaults either but should be disallowed as well.
Signed-off-by: Jan Blunck <jblunck@suse.de> --- drivers/s390/crypto/zcrypt_api.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 65b6a96..4ff1820 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c @@ -302,7 +302,7 @@ static int zcrypt_open(struct inode *inode, struct file *filp) lock_kernel(); atomic_inc(&zcrypt_open_count); unlock_kernel(); - return 0; + return nonseekable_open(inode, filp); } /** -- 1.6.4.2
| |