summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2008-07-22 13:04:18 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2008-08-20 11:15:46 -0700
commit8351091278bee4ee706b1c08c54193914acc7d31 (patch)
treeca7b8d5560c4db581e147f977e4c00dd814ed126
parent8d1fddf801ddebbc287a5567270ba866ce51a3c2 (diff)
downloadlwn-8351091278bee4ee706b1c08c54193914acc7d31.tar.gz
lwn-8351091278bee4ee706b1c08c54193914acc7d31.zip
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>
-rw-r--r--fs/cifs/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c
index 5dbba896a7df..9b9d96078111 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);