From your link31 million doses...
https://www.hhs.gov/about/news/2020...ossible-treatments-for-covid-19-patients.html
The U.S. Department of Health and Human Services (HHS) today accepted 30 million doses of hydroxychloroquine sulfate donated by Sandoz, the Novartis generics and biosimilars division, and one million doses of chloroquine phosphate donated by Bayer Pharmaceuticals, for possible use in treating patients hospitalized with COVID-19 or for use in clinical trials.
These and other companies may donate additional doses, and companies have ramped up production to provide additional supplies of the medication to the commercial market.
So, there is no shortage for lupis or malaria patients already using the drug.