pcmcia cis: on an out of range CIS read return 0xff, don't just warn
authorAlan Cox <alan@linux.intel.com>
Wed, 10 Dec 2014 15:06:10 +0000 (15:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jan 2015 13:04:12 +0000 (05:04 -0800)
commitb38a4bd319e615b4eb4be9d8c0d5ddc13113c768
treec00237e66efd36f57463c30c2b3b260512214be6
parenta6c6193a3662f6634ad7f797597081556a9db068
pcmcia cis: on an out of range CIS read return 0xff, don't just warn

The current code displays warnings but then proceeds to try and reference
the data through the PCMCIA window. Instead return 0xff. This prevents bogus
CIS data sending us off into hyperspace.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/cistpl.c