boot/common: Fix passing of wrong variable in file_load()
authorAaron LI <aly@aaronly.me>
Sun, 19 Feb 2023 09:38:32 +0000 (17:38 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 21 Feb 2023 14:16:34 +0000 (22:16 +0800)
commit138a936f330b2e0427ebbe09efc793a8fb41fba0
tree68b7b85caedaf524a9074fa48a5c1d4ec18d8fde
parent6c8dfad84280089e1648c2b087d7d50763a1324d
boot/common: Fix passing of wrong variable in file_load()

In file_load(), the l_load() method should be passed the argument 'dest'
instead of the global variable 'loadaddr'.  The bug didn't cause real
problem because they're the same.  Neverthless, fix it.

Obtained-from: FreeBSD (commit 0a215cf2d80bf9f44d5e01266de38c26df071b7a)
stand/boot/common/module.c