Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6c8cefc authored by Stefan Richter's avatar Stefan Richter
Browse files

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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent bdabfa54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1144,7 +1144,7 @@ static int sbp2_probe(struct device *dev)
		return -ENODEV;

	if (dma_get_max_seg_size(device->card->device) > SBP2_MAX_SEG_SIZE)
		BUG_ON(dma_set_max_seg_size(device->card->device,
		WARN_ON(dma_set_max_seg_size(device->card->device,
					     SBP2_MAX_SEG_SIZE));

	shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt));