Lines Matching defs:error
314 * during error recovery. Tread carefully. */
318 /* we are in error recovery for this device */
367 sdp->exclude = false; /* undo if error */
970 * return an error value. So returning '0' to keep compability
1437 int error;
1450 error = idr_alloc(&sg_index_idr, sdp, 0, SG_MAX_DEVS, GFP_NOWAIT);
1451 if (error < 0) {
1452 if (error == -ENOSPC) {
1456 error = -ENODEV;
1460 __func__, error);
1464 k = error;
1478 error = 0;
1484 if (error) {
1486 return ERR_PTR(error);
1497 int error;
1505 error = -ENOMEM;
1517 error = PTR_ERR(sdp);
1521 error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1);
1522 if (error)
1535 error = PTR_ERR(sg_class_member);
1538 error = sysfs_create_link(&scsidp->sdev_gendev.kobj,
1540 if (error)
1563 return error;