]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
watchdog: hpwdt: clean up set_memory_x call for 32 bit
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 16 Jan 2012 04:02:50 +0000 (20:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:23 +0000 (12:31 -0700)
commit00974784802bca093cd5131852bb5064241be432
tree98cce318add0320375b4837b4356625e6f04b1bb
parent58688fc7678d0cec61788e62dfea85499bc8a3d9
watchdog: hpwdt: clean up set_memory_x call for 32 bit

commit 97d2a10d5804d585ab0b58efbd710948401b886a upstream.

1. address has to be page aligned.
2. set_memory_x uses page size argument, not size.
Bug causes with following commit:
commit da28179b4e90dda56912ee825c7eaa62fc103797
Author: Mingarelli, Thomas <Thomas.Mingarelli@hp.com>
Date:   Mon Nov 7 10:59:00 2011 +0100

     watchdog: hpwdt: Changes to handle NX secure bit in 32bit path

    commit e67d668e147c3b4fec638c9e0ace04319f5ceccd upstream.

    This patch makes use of the set_memory_x() kernel API in order
    to make necessary BIOS calls to source NMIs.

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/hpwdt.c