linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.44k stars 648 forks source link

nvme: add -ENOMEM alloc error message output #2337

Closed ikegami-t closed 2 months ago

ikegami-t commented 3 months ago

Since for the error case no message output.

igaw commented 2 months ago

As state here, there is not much we can't do safely when ENOMEM happens. Obviously, large allocation can and should be handled but all these hidden and small allocation are just not worth to handle. It makes the error code ugly and no one is testing it anyway. Rather just die with abort and be done with it.