diff options
| author | Deva Ramasubramanian <dramasub@codeaurora.org> | 2014-03-20 14:51:23 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-03-21 18:24:52 -0700 |
| commit | 404690986e388c3891831ecf5cbd9f6ab1744c23 (patch) | |
| tree | ec9b1a1bb817d37e68b6f1f7596ee4359fa04265 /net/unix/af_unix.c | |
| parent | 7bdee1c133d9d9d2d85169456ea9e765a6730587 (diff) | |
msm: vidc: Set a valid rc if PTR_ERR is 0
In cases where IS_ERR_OR_NULL() was true, the driver was forming the
return via PTR_ERR. However if the OR_NULL part happens to be true,
PTR_ERR(NULL) would be 0, which would generally mean success. So, if
PTR_ERR returns 0, assign a valid error code to rc.
Change-Id: I363c69963040074e7b97d85914ea168b8eba3ab3
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
