How to fix last year's Form 8582 1c:last years' allowed losses.

I just found out that I didn't report the correct unallowed losses on the 2021 Form.  Do I need to file an amendment to last year's return to making the corrections?  Or can I manually update the current 2022 tax return?