diff options
author | Hoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com> | 2008-04-29 13:46:52 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-29 13:46:52 -0700 |
commit | 7df109d917e85d3da2e25bd495c4997e87ed2a4e (patch) | |
tree | 6eac844aee0badb05ac40dbfe1b3fe142e9d9f09 /drivers/pci/access.c | |
parent | f8b0dfd15277974b5c9f3ff17f9e3ab6fdbe45ee (diff) |
IB/ehca: handle negative return value from ibmebus_request_irq() properly
ehca_create_eq() was assigning a signed return value to an unsiged
local variable and then checking if the variable was < 0, which meant
that errors were always ignored. Fix this by using one variable for
signed integer return values and another for u64 hcall return values.
Bug originally found by Roel Kluin <12o3l@tiscali.nl>.
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/pci/access.c')
0 files changed, 0 insertions, 0 deletions