From: Stefan Richter Date: Sun, 24 Mar 2013 16:31:38 +0000 (+0100) Subject: firewire: sbp2: replace BUG_ON by WARN_ON X-Git-Tag: v3.10-rc1~37^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6c8cefc69a0b1e75b369613f902141f2c621914;p=karo-tx-linux.git 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 --- 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) 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, - SBP2_MAX_SEG_SIZE)); + WARN_ON(dma_set_max_seg_size(device->card->device, + SBP2_MAX_SEG_SIZE)); shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt)); if (shost == NULL)