summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/rsrc_mgr.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2014-12-10 15:05:38 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-12 05:04:12 -0800
commita6c6193a3662f6634ad7f797597081556a9db068 (patch)
treeae58c9987c2db5ef88e65ceff6e197ceaebc0177 /drivers/pcmcia/rsrc_mgr.c
parentc4277e9ea70431aea0fecebb8bb9a3fbc27d074e (diff)
downloadop-kernel-dev-a6c6193a3662f6634ad7f797597081556a9db068.zip
op-kernel-dev-a6c6193a3662f6634ad7f797597081556a9db068.tar.gz
pcmcia: correct types
We should be using resource_size_t and unsigned types correctly, otherwise we sign extend the flags on a 64bit box, which is not what we want. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/rsrc_mgr.c')
-rw-r--r--drivers/pcmcia/rsrc_mgr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pcmcia/rsrc_mgr.c b/drivers/pcmcia/rsrc_mgr.c
index aa628ed..df2cb70 100644
--- a/drivers/pcmcia/rsrc_mgr.c
+++ b/drivers/pcmcia/rsrc_mgr.c
@@ -30,8 +30,9 @@ int static_init(struct pcmcia_socket *s)
return 0;
}
-struct resource *pcmcia_make_resource(unsigned long start, unsigned long end,
- int flags, const char *name)
+struct resource *pcmcia_make_resource(resource_size_t start,
+ resource_size_t end,
+ unsigned long flags, const char *name)
{
struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
OpenPOWER on IntegriCloud