]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: fix error code handling on 64 Bit systems
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Sep 2013 15:02:49 +0000 (17:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Sep 2013 18:44:33 +0000 (14:44 -0400)
commit886d921e190d77fb4db8f79a666bcbe521aef979
tree5f1e3886781213fb9091ee15c01b88c2fa9d3876
parenta74de89091adda8d615d3a67c2d28c7c025ae85c
bcma: fix error code handling on 64 Bit systems

On most 64 Bit systems unsigned long is 64 bit long and then -MAX_ERRNO
is out of the range of a u32 used to store the error code in.
This patch casts the -MAX_ERRNO to a u32 instead.

This fixes a regression introduced in:
commit c58cdbd4ccbc70f7c3db06016432962b458fe6b2
Author: Hauke Mehrtens <hauke@hauke-m.de>
Date:   Mon Jul 15 13:15:08 2013 +0200

    bcma: fix handling of big addrl

Reported-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c