X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fkernel_patches%2Fpatches%2Flinux-2.4.20-xattr-0.8.54-hp.patch;h=3c156e8c1e9a20facbce5b086bf0d99548df53bc;hb=3e69f841a5dd46ff8a6212f7d594ece2a929131f;hp=f1365d7b813d69748641dc94fa5ae25a6630b58f;hpb=2dc9c16e770415d56839e1996015fec5fab93f29;p=fs%2Flustre-release.git diff --git a/lustre/kernel_patches/patches/linux-2.4.20-xattr-0.8.54-hp.patch b/lustre/kernel_patches/patches/linux-2.4.20-xattr-0.8.54-hp.patch index f1365d7..3c156e8 100644 --- a/lustre/kernel_patches/patches/linux-2.4.20-xattr-0.8.54-hp.patch +++ b/lustre/kernel_patches/patches/linux-2.4.20-xattr-0.8.54-hp.patch @@ -679,7 +679,7 @@ +void +ext2_xattr_unregister(int name_index, struct ext2_xattr_handler *handler) +{ -+ if (name_index > 0 || name_index <= EXT2_XATTR_INDEX_MAX) { ++ if (name_index > 0 && name_index <= EXT2_XATTR_INDEX_MAX) { + write_lock(&ext2_handler_lock); + ext2_xattr_handlers[name_index-1] = NULL; + write_unlock(&ext2_handler_lock);