Skip to content
Snippets Groups Projects
Commit 62a879ed authored by kalpak's avatar kalpak
Browse files

b=13858

i=fanyong

key may not be NULL terminated on HEAD, so change KEY_IS() macro to use strncmp() instead of strcmp.
parent 5735341e
No related merge requests found
......@@ -715,7 +715,7 @@ do { \
#define OBD_SLAB_FREE_PTR(ptr, slab) \
OBD_SLAB_FREE((ptr), (slab), sizeof *(ptr))
#define KEY_IS(str) (keylen >= strlen(str) && strcmp(key, str) == 0)
#define KEY_IS(str) (keylen >= strlen(str) && strncmp(key, str, keylen) == 0)
/* Wrapper for contiguous page frame allocation */
#define OBD_PAGES_ALLOC(ptr, order, gfp_mask) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment