lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMRc=MdxCgsbwpBah8qDbTaM-Dt2gEqEPizmg7FqHsqsg9AjgQ@mail.gmail.com>
Date:   Mon, 11 Dec 2017 10:38:01 +0100
From:   Bartosz Golaszewski <brgl@...ev.pl>
To:     Uwe Kleine-König 
        <u.kleine-koenig@...gutronix.de>
Cc:     Heiner Kallweit <hkallweit1@...il.com>,
        linux-i2c <linux-i2c@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] eeprom: at24: code shrink

2017-12-11 9:08 GMT+01:00 Uwe Kleine-König <u.kleine-koenig@...gutronix.de>:
> Hello,
>
> On Sun, Dec 10, 2017 at 08:29:47PM +0100, Bartosz Golaszewski wrote:
>> @@ -625,7 +610,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)
>>       at24->offset_adj = at24_get_offset_adj(chip.flags, chip.byte_len);
>>
>>       at24->client[0].client = client;
>> -     at24->client[0].regmap = devm_regmap_init_i2c(client, config);
>> +     at24->client[0].regmap = devm_regmap_init_i2c(client, &config);
>>       if (IS_ERR(at24->client[0].regmap))
>>               return PTR_ERR(at24->client[0].regmap);
>>
>
> One side effect here that the lockdep name changes from (unhelpful)
> "config" to (unhelpful and ugly) "&config". Probably doesn't matter much
> ...
>
> Best regards
> Uwe
>

We can always rename the variable to regmap_config or smth, but in
case of a lockdep splat we'll see the stack trace anyway.

Thanks,
Bartosz

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ