OSDN Git Service

media: mc: Make media_entity_get_fwnode_pad() fwnode argument const
[tomoyo/tomoyo-test1.git] / mm / filemap.c
index a34abfe..b4c9bd3 100644 (file)
@@ -3378,7 +3378,7 @@ out_retry:
         * re-find the vma and come back and find our hopefully still populated
         * page.
         */
-       if (folio)
+       if (!IS_ERR(folio))
                folio_put(folio);
        if (mapping_locked)
                filemap_invalidate_unlock_shared(mapping);