Skip to content

Commit 4b375f9

Browse files
committed
testing_things: uninitialized dereference
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 40d0e89 commit 4b375f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/misc/mathworks/mathworks_generic_of.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ static int mathworks_generic_of_i2c_init(struct mathworks_ip_info *thisIpcore){
106106
static int mathworks_generic_of_get_param(struct mathworks_ip_info *thisIpcore, void *arg)
107107
{
108108
struct mathworks_ip_param_info pinfo;
109+
struct mathworks_ip_param_info pinfo2;
110+
const size_t size = pinfo2->size;
109111
const void *paramData;
110112
int len;
111113

0 commit comments

Comments
 (0)