File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1992,8 +1992,8 @@ static int default_write_copy(struct snd_pcm_substream *substream,
1992
1992
int channel , unsigned long hwoff ,
1993
1993
struct iov_iter * iter , unsigned long bytes )
1994
1994
{
1995
- if (! copy_from_iter (get_dma_ptr (substream -> runtime , channel , hwoff ),
1996
- bytes , iter ))
1995
+ if (copy_from_iter (get_dma_ptr (substream -> runtime , channel , hwoff ),
1996
+ bytes , iter ) != bytes )
1997
1997
return - EFAULT ;
1998
1998
return 0 ;
1999
1999
}
@@ -2025,8 +2025,8 @@ static int default_read_copy(struct snd_pcm_substream *substream,
2025
2025
int channel , unsigned long hwoff ,
2026
2026
struct iov_iter * iter , unsigned long bytes )
2027
2027
{
2028
- if (! copy_to_iter (get_dma_ptr (substream -> runtime , channel , hwoff ),
2029
- bytes , iter ))
2028
+ if (copy_to_iter (get_dma_ptr (substream -> runtime , channel , hwoff ),
2029
+ bytes , iter ) != bytes )
2030
2030
return - EFAULT ;
2031
2031
return 0 ;
2032
2032
}
You can’t perform that action at this time.
0 commit comments