]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: amd76xrom: fix oops at boot when resources are not available
authorStanislaw Gruszka <stf_xl@wp.pl>
Sat, 8 Jan 2011 14:24:37 +0000 (15:24 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:19:09 +0000 (14:19 +0000)
commit4cffc0635ea10ad35bfb96859fe799293946b8eb
tree4fa9c93ef0846848576f115baa5bf5c95728e9a4
parentf920b3e3d0ed0536ddb95766c7b5365f5ab45a03
mtd: amd76xrom: fix oops at boot when resources are not available

For some unknown reasons resources needed by amd76xrom driver can be
unavailable. And instead of returning an error, the driver keeps going
and crash the kernel. This patch fixes the problem by making the driver
return -EBUSY if the resources are not available.

Commit messages tweaked by Artem.

Reported-by: Russell Whitaker <russ@ashlandhome.net>
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org
drivers/mtd/maps/amd76xrom.c