Skip to content
Snippets Groups Projects
Commit 2936ae49 authored by Benedetto, Salvatore's avatar Benedetto, Salvatore Committed by Kenneth Johansson
Browse files

Merge pull request #273 in SW_PON/linux from...

Merge pull request #273 in SW_PON/linux from bugfix/UGW_SW-23348-kernel-dump-observed-while-executing-cdr-and-nbt to xrx500

* commit 'd160d55eb68343cc92cd3e84e7c85ebd49ba7bd4':
  spi: ltq_ssc - fix ifx_validate_params()
  spi: ltq_ssc - Remove dump_stack call
parent 34aa3f0a
No related branches found
No related tags found
No related merge requests found
......@@ -2864,25 +2864,19 @@ static int ifx_validate_params(IFX_SSC_HANDLE handler, char *txbuf, int txsize,
if (!handler) {
LOGF_KLOG_ERROR("%s: invalid handler\n", __func__);
dump_stack();
goto out;
}
if (!rxbuf || rxsize == 0) {
LOGF_KLOG_ERROR("%s: invalid rxbuf=%x rxsize=%d\n",
__func__, rxbuf, rxsize);
if (!rxbuf && rxsize == 0 && !txbuf && txsize == 0) {
LOGF_KLOG_ERROR("%s: invalid data\n");
dump_stack();
goto out;
}
if (!txbuf || txsize == 0) {
LOGF_KLOG_ERROR("%s: invalid txbuf=%x txsize=%d\n",
__func__, txbuf, txsize);
goto out;
}
status = 0;
out:
dump_stack();
return status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment