Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce435593 authored by Anton Protopopov's avatar Anton Protopopov Committed by Ilya Dryomov
Browse files

ceph: fix a wrong comparison



A negative value rc compared to the positive value ENOENT in the
finish_read() function.

Signed-off-by: default avatarAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 8bbd4714
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ static void finish_read(struct ceph_osd_request *req, struct ceph_msg *msg)
	for (i = 0; i < num_pages; i++) {
		struct page *page = osd_data->pages[i];

		if (rc < 0 && rc != ENOENT)
		if (rc < 0 && rc != -ENOENT)
			goto unlock;
		if (bytes < (int)PAGE_CACHE_SIZE) {
			/* zero (remainder of) page */