
< 			upper = kmemdup(&entry[max + 1],
---
> 			upper = kmemdup(&entry[max],
