Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[linux-2.6-microblaze.git] / drivers / scsi / scsi_transport_sas.c
index 319dff9..736a1f4 100644 (file)
@@ -177,7 +177,7 @@ static int sas_smp_dispatch(struct bsg_job *job)
        if (!scsi_is_host_device(job->dev))
                rphy = dev_to_rphy(job->dev);
 
-       if (!job->req->next_rq) {
+       if (!job->reply_payload.payload_len) {
                dev_warn(job->dev, "space for a smp response is missing\n");
                bsg_job_done(job, -EINVAL, 0);
                return 0;