libahci: Fix bug in storing EM messages
authorHarry Zhang <harry.zhang@amd.com>
Thu, 24 Jun 2010 03:34:23 +0000 (11:34 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 1 Jul 2010 19:34:15 +0000 (15:34 -0400)
commitf9ce889b8f8384ee29e1be4b34091a932e6e40f3
treeed9b189cf639e2dcfa144cd840c0e0efa55f838a
parent984bc9601f64fd341b8573021d7c999f1f1499a9
libahci: Fix bug in storing EM messages

In function ahci_store_em_buffer(), if the input (signed char*) buffer
contains negative data, the constructed 32-bit long message data may
be wrong.

Signed-off-by: Harry Zhang <harry.zhang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libahci.c