Lines Matching refs:error
314 * during error recovery. Tread carefully. */
318 /* we are in error recovery for this device */
367 sdp->exclude = false; /* undo if error */
968 * return an error value. So returning '0' to keep compability
1457 int error;
1470 error = idr_alloc(&sg_index_idr, sdp, 0, SG_MAX_DEVS, GFP_NOWAIT);
1471 if (error < 0) {
1472 if (error == -ENOSPC) {
1476 error = -ENODEV;
1480 __func__, error);
1484 k = error;
1500 error = 0;
1506 if (error) {
1508 return ERR_PTR(error);
1520 int error;
1530 error = -ENOMEM;
1542 error = PTR_ERR(sdp);
1546 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1);
1547 if (error)
1560 error = PTR_ERR(sg_class_member);
1563 error = sysfs_create_link(&scsidp->sdev_gendev.kobj,
1565 if (error)
1588 return error;