Coverity report 1224448, dereference after null check, kpack might be NULL.