Bug 194361 - drivers/staging/lustre/obdclass/cl_page.c cl_page_find return error
Summary: drivers/staging/lustre/obdclass/cl_page.c cl_page_find return error
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Staging (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_staging@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-07 06:10 UTC by Michael
Modified: 2017-02-07 06:10 UTC (History)
0 users

See Also:
Kernel Version: 4.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Michael 2017-02-07 06:10:09 UTC
In cl_page_ALLOC:
	else {
--->     page = ERR_PTR(-ENOMEM);
    }
    return page;

	The return value in cl_page_alloc can be ERR_PTR(-ENOMEM), which is then returned in cl_page_find.  Is this error handled in the caller function? Why is a page used for returning the -ENOMEM error?

Found using static analysis tools.

Note You need to log in before you can comment on or make changes to this bug.