Loading security/integrity/iint.c +6 −5 Original line number Diff line number Diff line Loading @@ -234,12 +234,13 @@ int __init integrity_read_file(const char *path, char **data) } rc = integrity_kernel_read(file, 0, buf, size); if (rc < 0) if (rc == size) { *data = buf; } else { kfree(buf); else if (rc != size) if (rc >= 0) rc = -EIO; else *data = buf; } out: fput(file); return rc; Loading Loading
security/integrity/iint.c +6 −5 Original line number Diff line number Diff line Loading @@ -234,12 +234,13 @@ int __init integrity_read_file(const char *path, char **data) } rc = integrity_kernel_read(file, 0, buf, size); if (rc < 0) if (rc == size) { *data = buf; } else { kfree(buf); else if (rc != size) if (rc >= 0) rc = -EIO; else *data = buf; } out: fput(file); return rc; Loading