| .. | .. |
|---|
| 3619 | 3619 | mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); |
|---|
| 3620 | 3620 | return illegal_condition_result; |
|---|
| 3621 | 3621 | } |
|---|
| 3622 | | - lrdp = kzalloc(lbdof_blen, GFP_ATOMIC); |
|---|
| 3622 | + lrdp = kzalloc(lbdof_blen, GFP_ATOMIC | __GFP_NOWARN); |
|---|
| 3623 | 3623 | if (lrdp == NULL) |
|---|
| 3624 | 3624 | return SCSI_MLQUEUE_HOST_BUSY; |
|---|
| 3625 | 3625 | if (sdebug_verbose) |
|---|
| .. | .. |
|---|
| 4275 | 4275 | if (ret) |
|---|
| 4276 | 4276 | return ret; |
|---|
| 4277 | 4277 | |
|---|
| 4278 | | - arr = kcalloc(lb_size, vnum, GFP_ATOMIC); |
|---|
| 4278 | + arr = kcalloc(lb_size, vnum, GFP_ATOMIC | __GFP_NOWARN); |
|---|
| 4279 | 4279 | if (!arr) { |
|---|
| 4280 | 4280 | mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, |
|---|
| 4281 | 4281 | INSUFF_RES_ASCQ); |
|---|
| .. | .. |
|---|
| 4346 | 4346 | rep_max_zones = min((alloc_len - 64) >> ilog2(RZONES_DESC_HD), |
|---|
| 4347 | 4347 | max_zones); |
|---|
| 4348 | 4348 | |
|---|
| 4349 | | - arr = kzalloc(alloc_len, GFP_ATOMIC); |
|---|
| 4349 | + arr = kzalloc(alloc_len, GFP_ATOMIC | __GFP_NOWARN); |
|---|
| 4350 | 4350 | if (!arr) { |
|---|
| 4351 | 4351 | mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, |
|---|
| 4352 | 4352 | INSUFF_RES_ASCQ); |
|---|
| .. | .. |
|---|
| 7103 | 7103 | kfree(sdbg_devinfo->zstate); |
|---|
| 7104 | 7104 | kfree(sdbg_devinfo); |
|---|
| 7105 | 7105 | } |
|---|
| 7106 | | - kfree(sdbg_host); |
|---|
| 7106 | + if (sdbg_host->dev.release) |
|---|
| 7107 | + put_device(&sdbg_host->dev); |
|---|
| 7108 | + else |
|---|
| 7109 | + kfree(sdbg_host); |
|---|
| 7107 | 7110 | pr_warn("%s: failed, errno=%d\n", __func__, -error); |
|---|
| 7108 | 7111 | return error; |
|---|
| 7109 | 7112 | } |
|---|