Skip to content

Commit

Permalink
firewire: sbp2: replace BUG_ON by WARN_ON
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Stefan Richter committed Apr 28, 2013
1 parent bdabfa5 commit d6c8cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/firewire/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6c8cef

Please sign in to comment.