Heinrich Schuchardt 185fdf5e94 fs/squashfs: avoid illegal free() in sqfs_opendir()
* Use calloc() to allocate token_list. This avoids an illegal free if
  sqfs_tokenize() fails.
* Do not iterate over token_list if it has not been allocated.

Addresses-Coverity-ID: 510453:  Null pointer dereferences  (FORWARD_NULL)
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
2025-04-21 11:08:03 -06:00
..
2024-11-13 08:18:50 -06:00
2025-04-11 12:16:44 -06:00
2024-07-15 12:12:17 -06:00
2024-10-11 11:44:48 -06:00
2024-07-15 12:12:17 -06:00
2025-04-02 20:00:59 -06:00
2025-04-02 20:00:59 -06:00