]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: fix potential logic issue in pstore read interface
authorChen Gong <gong.chen@linux.intel.com>
Mon, 16 May 2011 18:01:39 +0000 (11:01 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 16 May 2011 18:05:08 +0000 (11:05 -0700)
commitc079d16ca4564c9dd1e280b30b5f2ff28698fafe
treec94504da49380911bef27f492e876ff19eb8a4b7
parenta8fd5ac05a775c2aa4e06858c6ecea2c51d2af46
pstore: fix potential logic issue in pstore read interface

1) in the calling of erst_read, the parameter of buffer size
maybe overflows and cause crash

2) the return value of erst_read should be checked more strictly

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/acpi/apei/erst.c