]> err.no Git - linux-2.6/commit
[IA64] Wrong args to memset in efi_gettimeofday()
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 6 Nov 2007 21:40:39 +0000 (13:40 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 6 Nov 2007 21:40:39 +0000 (13:40 -0800)
commit4b07ae9b9d7b05a63e3ece32a666041949b7f421
tree62e78c1d22dc58aa21bcd00309df3675f4332d04
parent8d0a6e4da5ecde2022025ee764e4f7e425a53770
[IA64] Wrong args to memset in efi_gettimeofday()

Not sizeof(ptr) ... we meant to say sizeof(*ptr).

Also moved the memset to the error path (the normal path overwrites
every field in the structure anyway) -Tony

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/efi.c