diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2013-03-24 12:31:38 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2013-04-28 17:36:44 -0400 |
commit | d6c8cefc69a0b1e75b369613f902141f2c621914 (patch) | |
tree | 13b3bfa6a28efeed9c7f0d7385f0a0930480b128 /drivers/firewire | |
parent | bdabfa54635e5d95a5aa2087794f203cc1915f7a (diff) |
firewire: sbp2: replace BUG_ON by WARN_ON
No need to crash and burn if S/G element sizes cannot be set to our
liking; just leave a message in the log.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/sbp2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index 12ec0e6fd09e..cbf969abe311 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c | |||
@@ -1144,8 +1144,8 @@ static int sbp2_probe(struct device *dev) | |||
1144 | return -ENODEV; | 1144 | return -ENODEV; |
1145 | 1145 | ||
1146 | if (dma_get_max_seg_size(device->card->device) > SBP2_MAX_SEG_SIZE) | 1146 | if (dma_get_max_seg_size(device->card->device) > SBP2_MAX_SEG_SIZE) |
1147 | BUG_ON(dma_set_max_seg_size(device->card->device, | 1147 | WARN_ON(dma_set_max_seg_size(device->card->device, |
1148 | SBP2_MAX_SEG_SIZE)); | 1148 | SBP2_MAX_SEG_SIZE)); |
1149 | 1149 | ||
1150 | shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt)); | 1150 | shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt)); |
1151 | if (shost == NULL) | 1151 | if (shost == NULL) |