[LU-3498] most uses of IS_ERR_VALUE() are incorrect Created: 24/Jun/13 Updated: 27/Jun/14 Resolved: 22/Apr/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.0 |
| Fix Version/s: | Lustre 2.6.0, Lustre 2.5.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 8795 | ||||||||||||
| Description |
|
We have several places in the code that do something equivalent the following int rc = PTR_ERR(foo);
if (IS_ERR_VALUE(rc))
bar();
which is wrong. |
| Comments |
| Comment by John Hammond [ 24/Jun/13 ] |
|
Please see http://review.whamcloud.com/6759. |
| Comment by Andreas Dilger [ 22/Apr/14 ] |
|
Patch landed to master for 2.6.0. |
| Comment by Cory Spitz [ 30/Apr/14 ] |
|
As John points out in |
| Comment by Ryan Haasken [ 30/Apr/14 ] |
|
Here is the port to b2_5: http://review.whamcloud.com/#/c/10178/ |
| Comment by Ryan Haasken [ 12/May/14 ] |
|
John, the patch for b2_5 looks like it's ready to land. |
| Comment by Ryan Haasken [ 27/May/14 ] |
|
Bobi Jam's version of the b2_5 patch has landed: http://review.whamcloud.com/#/c/10363/ I will abandon my b2_5 patch here: |