diff options
| author | 2020-06-17 16:57:07 -0500 | |
|---|---|---|
| committer | 2020-08-17 13:08:43 +0200 | |
| commit | 77cf3a6827fe04e894ff0fbe8abc6a73795f8a92 (patch) | |
| tree | b4e2542653b61ede6c5d6f30b8b5734483d4ba72 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | drm/qxl: don't take vga ports on rev5+ (diff) | |
| download | wireguard-linux-77cf3a6827fe04e894ff0fbe8abc6a73795f8a92.tar.xz wireguard-linux-77cf3a6827fe04e894ff0fbe8abc6a73795f8a92.zip | |
drm/virtio: Use struct_size() helper in kmalloc()
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200617215707.GA16785@embeddedor
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
