HomeFreeBSD

flex_spi: Don't try to destroy disk if it doesn't exist

Description

flex_spi: Don't try to destroy disk if it doesn't exist

Try to stop and destroy the dist only if the driver has been successfully
attached. Otherwise a kernel panic will be triggered from disk_destroy.
The issue was observed on a board that missed SPI clock description in DT.

Details

Provenance
kdAuthored on Dec 6 2021, 2:17 PM
wmaCommitted on Dec 7 2021, 6:13 AM
Parents
rG41ae9f9e644d: fusefs: invalidate the cache during copy_file_range
Branches
Unknown
Tags
Unknown