diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-07-22 13:04:18 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-20 11:05:10 -0700 |
commit | d389b252e7e2b9559011a370aafc0202f5107d25 (patch) | |
tree | 471eca15671e95167ea675d52ae0066d003fae35 /fs | |
parent | 62a7eae37a749faf08e20cf540320e0e0228f403 (diff) |
CIFS: Fix compiler warning on 64-bit
commit 04e1e0cccade330ab3715ce59234f7e3b087e246 upstream.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Cc: Eugene Teo <eteo@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c index f58e41d3ba48..42765465701c 100644 --- a/fs/cifs/asn1.c +++ b/fs/cifs/asn1.c @@ -400,7 +400,7 @@ asn1_oid_decode(struct asn1_ctx *ctx, size = eoc - ctx->pointer + 1; /* first subid actually encodes first two subids */ - if (size < 2 || size > ULONG_MAX/sizeof(unsigned long)) + if (size < 2 || size > UINT_MAX/sizeof(unsigned long)) return 0; *oid = kmalloc(size * sizeof(unsigned long), GFP_ATOMIC); |