linux/arch/s390/hypfs
Michael Holzheu 2fcb3686e1 [S390] hypfs: Move buffer allocation from open to read
Currently the buffer for diagnose data is allocated in the open function
of the debugfs file and is released in the close function. This has the
drawback that a user (root) can pin that memory by not closing the file.
This patch moves the buffer allocation to the read function. The buffer is
automatically released after the buffer is copied to userspace.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2011-01-05 12:47:27 +01:00
..
Makefile [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00
hypfs.h [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00
hypfs_dbfs.c [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00
hypfs_diag.c [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00
hypfs_vm.c [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00
inode.c [S390] hypfs: Move buffer allocation from open to read 2011-01-05 12:47:27 +01:00