fix: Use 'kernel_read' to read from procfs
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 24 Sep 2020 19:38:35 +0000 (15:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 30 Sep 2020 16:06:09 +0000 (12:06 -0400)
commitb02458336d103100bf7d8b90fc6120a5695ea6c0
tree72002db2eba2e8a894b4ba7d08f57da9b4b1ee06
parent5facfb7b687ca6fcb8b5715a2ea85800bacff534
fix: Use 'kernel_read' to read from procfs

Use the 'kernel_read' helper to read files in procfs, it's present in
the kernel since the 2.6 series and does the right thing on kernels that
require the set_fs dance and newer one which don't.

Change-Id: I1a53fda379e0bb9acc79331626925bbdba63d727
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/random.c
This page took 0.024782 seconds and 4 git commands to generate.