* sound/core/compress_offload.c:1071:5-11: inconsistent IS_ERR and PTR_ERR on line 1072.
@ 2024-12-29 0:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-29 0:22 UTC (permalink / raw)
To: Jaroslav Kysela
Cc: oe-kbuild-all, linux-kernel, Takashi Iwai, Amadeusz Sławiński
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 059dd502b263d8a4e2a84809cf1068d6a3905e6f
commit: 04177158cf98a79744937893b100020d77e6f9ac ALSA: compress_offload: introduce accel operation mode
date: 9 weeks ago
config: i386-randconfig-054-20241229 (https://download.01.org/0day-ci/archive/20241229/202412290846.cncnpGaw-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412290846.cncnpGaw-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> sound/core/compress_offload.c:1071:5-11: inconsistent IS_ERR and PTR_ERR on line 1072.
sound/core/compress_offload.c:1132:5-11: inconsistent IS_ERR and PTR_ERR on line 1133.
sound/core/compress_offload.c:1223:5-11: inconsistent IS_ERR and PTR_ERR on line 1224.
vim +1071 sound/core/compress_offload.c
1062
1063 static int snd_compr_task_create(struct snd_compr_stream *stream, unsigned long arg)
1064 {
1065 struct snd_compr_task *task __free(kfree) = NULL;
1066 int retval;
1067
1068 if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
1069 return -EPERM;
1070 task = memdup_user((void __user *)arg, sizeof(*task));
> 1071 if (IS_ERR(task))
> 1072 return PTR_ERR(no_free_ptr(task));
1073 retval = snd_compr_task_new(stream, task);
1074 if (retval >= 0)
1075 if (copy_to_user((void __user *)arg, task, sizeof(*task)))
1076 retval = -EFAULT;
1077 return retval;
1078 }
1079
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-29 0:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-29 0:22 sound/core/compress_offload.c:1071:5-11: inconsistent IS_ERR and PTR_ERR on line 1072 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®