lkml.org 
[lkml]   [2021]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v4] staging: r8188eu: Use strndup_user instead of kmalloc/copy_from_user
    From
    On 12/25/21 20:04, Jiapeng Chong wrote:
    > This code assumes that the user is going to give us a NUL terminated
    > string which is not necessarily true.
    >
    > Fix following coccicheck warning:
    >
    > ./drivers/staging/r8188eu/os_dep/ioctl_linux.c:4253:8-15: WARNING
    > opportunity for memdup_user.
    >
    > Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    > Fixes: 2b42bd58b321 ("staging: r8188eu: introduce new os_dep dir for RTL8188eu driver")
    > Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
    > ---

    Subject line and commit message are completely unrelated to the change
    itself, please fix up.


    With regards,
    Pavel Skripkin

    \
     
     \ /
      Last update: 2021-12-25 19:20    [W:2.690 / U:0.704 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site