]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab1fb1889a454e6cda4f5d02b7f53b492ecf8e1e
treeed9b189cf639e2dcfa144cd840c0e0efa55f838a
parenta57519b069f9f339c0af95dfa22e078ecc370529
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