diff --git a/[refs] b/[refs] index efcf6c1bdd0f..fe6b7682831e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 10e5dce07e6f8f9cea1b54161a888bb099484f88 +refs/heads/master: fa79837d5b562766a3e3cfad4753a3df8e0a1319 diff --git a/trunk/include/linux/err.h b/trunk/include/linux/err.h index ff71d2af5da3..cd3b367f7445 100644 --- a/trunk/include/linux/err.h +++ b/trunk/include/linux/err.h @@ -13,7 +13,9 @@ * This should be a per-architecture thing, to allow different * error and pointer decisions. */ -#define IS_ERR_VALUE(x) unlikely((x) > (unsigned long)-1000L) +#define MAX_ERRNO 4095 + +#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) static inline void *ERR_PTR(long error) {