diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 0c691a60a756f6144d01706e566d7704a4e41075..85d38940a6c91e2b0d5b546bb0705bdd3ab37f8a 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1842,7 +1842,7 @@ sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) int blk_size = buff_size; struct page *p = NULL; - if ((blk_size < 0) || (!sfp)) + if (blk_size < 0) return -EFAULT; if (0 == blk_size) ++blk_size; /* don't know why */