]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/scsi/osd/osd_initiator.c
[SCSI] libosd: Fix unchecked err return found by smatch
[net-next-2.6.git] / drivers / scsi / osd / osd_initiator.c
index 24223473f573c9b9e3ffd51714e015a68f8fa0cb..60de8509150228a5bd09210b54420b2cefa91ecf 100644 (file)
@@ -1433,6 +1433,10 @@ int osd_finalize_request(struct osd_request *or,
        cdbh->command_specific_options |= or->attributes_mode;
        if (or->attributes_mode == OSD_CDB_GET_ATTR_PAGE_SET_ONE) {
                ret = _osd_req_finalize_attr_page(or);
+               if (ret) {
+                       OSD_DEBUG("_osd_req_finalize_attr_page failed\n");
+                       return ret;
+               }
        } else {
                /* TODO: I think that for the GET_ATTR command these 2 should
                 * be reversed to keep them in execution order (for embeded