Karsten Graul 211e5b7a00 s390/ism: indicate correct error reason in ism_alloc_dmb()
When the ism driver allocates a new dmb in ism_alloc_dmb() it must
first check for and reserve a slot in the sba bitmap. When
find_next_zero_bit() finds no free slot then the return code is -ENOMEM.
This code conflicts with the error when the alloc() fails later in the
code. As a result of that the caller can not differentiate
between out-of-memory conditions and sba-bitmap-full conditions.
Fix that by using the return code -ENOSPC when the sba slot
reservation failed.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-27 10:30:01 -07:00
..
2020-07-03 16:15:31 +02:00
2020-06-19 13:09:40 -07:00
2020-07-17 09:58:18 -07:00
2020-07-16 11:26:40 -07:00
2020-07-16 11:26:40 -07:00
2020-07-15 15:58:11 -07:00
2020-07-25 13:18:42 -07:00
2020-06-26 17:26:31 +02:00
2020-06-26 23:53:25 +02:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-06-29 19:10:51 +02:00
2020-07-07 21:04:38 +02:00
2020-07-27 10:09:57 -07:00
2020-07-24 18:30:24 -07:00
2020-07-08 18:00:07 +02:00
2020-06-28 01:08:21 +02:00
2020-06-13 13:29:16 -07:00
2020-06-04 19:09:28 +02:00
2020-06-08 13:01:08 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-07-16 22:08:07 +02:00
2020-07-17 10:24:09 -07:00
2020-06-13 13:29:16 -07:00
2020-07-16 11:10:27 -07:00
2020-07-16 17:30:59 +02:00
2020-06-22 12:34:21 -04:00
2020-07-24 18:30:24 -07:00
2020-07-11 11:16:46 -07:00