]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: gasket: Fix incongruency in handling of sysfs entries creation
authorLuis Mendes <luis.p.mendes@gmail.com>
Fri, 3 Apr 2020 15:15:34 +0000 (16:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 14:32:11 +0000 (16:32 +0200)
commit9195d762042b0e5e4ded63606b4b30a93cba4400
tree4e5ff38045c11bdc761809ba71783eb52575f103
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
staging: gasket: Fix incongruency in handling of sysfs entries creation

Fix incongruency in handling of sysfs entries creation.
This issue could cause invalid memory accesses, by not properly
detecting the end of the sysfs attributes array.

Fixes: 84c45d5f3bf1 ("staging: gasket: Replace macro __ATTR with __ATTR_NULL")
Signed-off-by: Luis Mendes <luis.p.mendes@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200403151534.20753-1-luis.p.mendes@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.c
drivers/staging/gasket/gasket_sysfs.h