From: Yue Hu <huyue2@xxxxxxxxxxx>
As syzbot reported [1], the fragment feature sb flag is not set, so
packed_inode != NULL needs to be checked in z_erofs_read_fragment().
[1] https://lore.kernel.org/all/0000000000002e7a8905eb841ddd@xxxxxxxxxx/
Reported-by: syzbot+3faecbfd845a895c04cb@xxxxxxxxxxxxxxxxxxxxxxxxx
Fixes: 08a0c9ef3e7e ("erofs: support on-disk compressed fragments data")
Signed-off-by: Yue Hu <huyue2@xxxxxxxxxxx>