Re: [PATCH] scsi: pm8001: Fix error code in non_fatal_log_show()
"Martin K. Petersen" <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.linux-scsi |
|---|---|
| Organization | Oracle |
| Message-ID | <[email protected]> |
Dan, > The non_fatal_log_show() function is supposed to return negative error > codes on failure. But because the error codes are saved in a u32 and > then cast to signed long, they end up being high positive values > instead of negative. Remove the intermediary u32 variable to fix this > bug. Applied to 7.2/scsi-staging, thanks! -- Martin K. Petersen