Page MenuHomeFreeBSD

ufshci: handle a recovery reset before the SIM attach
ClosedPublic

Authored by jaeyoon on Wed, Aug 19, 5:43 AM.
Tags
None
Referenced Files
F170733409: D58947.diff
Sun, Sep 6, 7:13 AM
Unknown Object (File)
Sat, Sep 5, 6:08 AM
Unknown Object (File)
Sat, Sep 5, 3:07 AM
Unknown Object (File)
Sat, Sep 5, 3:01 AM
Unknown Object (File)
Fri, Sep 4, 11:39 PM
Unknown Object (File)
Fri, Sep 4, 6:37 PM
Unknown Object (File)
Fri, Sep 4, 6:40 AM
Unknown Object (File)
Fri, Sep 4, 4:49 AM
Subscribers
None

Details

Summary

When the first start attempt fails early, the recovery reset
runs the start sequence again without a SIM. That pass still
looked up the WLUN, so it dereferenced a NULL SIM and panicked.

Attach the SIM whenever it does not exist yet. Also make the
WLUN lookup return NULL when there is no SIM.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable