Bug 194361

Summary: drivers/staging/lustre/obdclass/cl_page.c cl_page_find return error
Product: Drivers Reporter: Michael (michael_allen_bond)
Component: StagingAssignee: drivers_staging (drivers_staging)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.10 Subsystem:
Regression: No Bisected commit-id:

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.