~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/scsi/libsas/sas_scsi_host.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
                struct sas_ha_struct *sas_ha = dev->port->ha;
208
208
                struct sas_task *task;
209
209
 
 
210
                /* If the device fell off, no sense in issuing commands */
 
211
                if (dev->gone) {
 
212
                        cmd->result = DID_BAD_TARGET << 16;
 
213
                        scsi_done(cmd);
 
214
                        goto out;
 
215
                }
 
216
 
210
217
                if (dev_is_sata(dev)) {
211
218
                        unsigned long flags;
212
219
 
216
223
                        goto out;
217
224
                }
218
225
 
219
 
                /* If the device fell off, no sense in issuing commands */
220
 
                if (dev->gone) {
221
 
                        cmd->result = DID_BAD_TARGET << 16;
222
 
                        scsi_done(cmd);
223
 
                        goto out;
224
 
                }
225
 
 
226
226
                res = -ENOMEM;
227
227
                task = sas_create_task(cmd, dev, GFP_ATOMIC);
228
228
                if (!task)