diff --git a/fs/hfs/brec.c b/fs/hfs/brec.c index 896396554bcc..763b6209a198 100644 --- a/fs/hfs/brec.c +++ b/fs/hfs/brec.c @@ -208,7 +208,7 @@ int hfs_brec_remove(struct hfs_find_data *fd) } hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); - if (rec_off == end_off) + if (rec_off <= end_off) goto skip; size = fd->keylength + fd->entrylength;