]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: mod_loadkld() error: we previously assumed 'last_file' could be null
authortsoome <tsoome@FreeBSD.org>
Sun, 7 Apr 2019 12:20:17 +0000 (12:20 +0000)
committertsoome <tsoome@FreeBSD.org>
Sun, 7 Apr 2019 12:20:17 +0000 (12:20 +0000)
commita1f406478daaa6d72d9d2e1ca715436086ca0ffa
tree02c22df0c29541f1cf268ce7589f279aef914685
parent25dc3eaba8dd64418ae774dc28ed422a642bb02a
loader: mod_loadkld() error: we previously assumed 'last_file' could be null

The last_file variable is used to reset the loadaddr variable back to original
value; however, it is possible the last_file is NULL, so we can not blindly
trust it. But then again, we can just save the original loadaddr and use
the saved value for recovery.

MFC after: 1w
stand/common/module.c