In the Linux kernel, the following vulnerability has been resolved:
ceph: fix memory leak in cephreaddir when notelast_dentry returns error
Reset the lastreaddir at the same time, and add a comment explaining why we don't free lastreaddir when dir_emit returns false.