# Re: \[PATCH 2/2\] vhost/scsi: Delete error messages for failed memory allocations in five functions

- From: Dan Carpenter \<hidden\>
- Date: 2017-05-22 12:39:01 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/05/5001507
- Thread: https://ratatoskr.run/kvm/2017/05/5000811/t.md

```text
On Mon, May 22, 2017 at 12:23:20PM +0100, Stefan Hajnoczi wrote:
> I'm not sure if kmalloc() and friends guarantee to show
> a message (not just the first time, but for every failed allocation)?
>

It prints multiple times, but it's ratelimited.  It can also be disabled
using a config option.

See slab_out_of_memory().

regards,
dan carpenter
```
