PLDM:Fix for file I/O by type (lids) writes returning error

This commit fixes the issue where file I/O by Type (lids)
writes were returning generic PLDM_ERROR.

Tested on a rainier.

Before the fix:
Sending Msg
08 3f 0c 01 00 00 00 00

Afetr the fix:
Sending Msg
09 3f 0c 00 ff 03 00 00

Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
Change-Id: Icc64c3a7c101700fdd626f9b9c9837c141e97648
diff --git a/oem/ibm/libpldmresponder/file_io_type_lid.hpp b/oem/ibm/libpldmresponder/file_io_type_lid.hpp
index 4f42e34..e5e5b5f 100644
--- a/oem/ibm/libpldmresponder/file_io_type_lid.hpp
+++ b/oem/ibm/libpldmresponder/file_io_type_lid.hpp
@@ -239,6 +239,14 @@
                       << ", LENGTH=" << length << ", OFFSET=" << offset << "\n";
             return PLDM_ERROR;
         }
+        else if (rc == static_cast<int>(length))
+        {
+            rc = PLDM_SUCCESS;
+        }
+        else if (rc < static_cast<int>(length))
+        {
+            rc = PLDM_ERROR;
+        }
         close(fd);
 
         if (lidType == PLDM_FILE_TYPE_LID_MARKER)