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: <CAGn2d8ML8eTcN2G18B7FYkapROnOeAKJir5fJvOXDdXTLY43aQ@mail.gmail.com>
Date: Tue, 24 Jun 2025 19:51:10 +0300
From: Abdelrahman Fekry <abdelrahmanfekry375@...il.com>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: andy@...nel.org, hdegoede@...hat.com, mchehab@...nel.org, 
	sakari.ailus@...ux.intel.com, gregkh@...uxfoundation.org, 
	linux-kernel@...r.kernel.org, linux-media@...r.kernel.org, 
	linux-staging@...ts.linux.dev, skhan@...uxfoundation.org, 
	linux-kernel-mentees@...ts.linux.dev
Subject: Re: [PATCH v2] staging: media: atomisp: remove debug sysfs attributes
 active_bo and free_bo

On Tue, Jun 24, 2025 at 7:31 PM Dan Carpenter <dan.carpenter@...aro.org> wrote:
>
> On Tue, Jun 24, 2025 at 05:49:43PM +0300, Abdelrahman Fekry wrote:
> >  int hmm_init(void)
> >  {
> >       int ret;
> > @@ -130,14 +48,6 @@ int hmm_init(void)
> >        */
> >       dummy_ptr = hmm_alloc(1);
> >
> > -     if (!ret) {
> > -             ret = sysfs_create_group(&atomisp_dev->kobj,
> > -                                      atomisp_attribute_group);
> > -             if (ret)
> > -                     dev_err(atomisp_dev,
> > -                             "%s Failed to create sysfs\n", __func__);
> > -     }
> > -
> >       return ret;
>
>
> It's really unclear how this "return ret;" is supposed to work.  Was
> that part of the sysfs_create_group()?
>
yes , but still it can be set by hmm_bo_device_init so even after removing
sysfs_create_group , ret value depends on another function.


> >  }
> >
> > @@ -145,7 +55,7 @@ void hmm_cleanup(void)
> >  {
> >       if (dummy_ptr == mmgr_EXCEPTION)
> >               return;
> > -     sysfs_remove_group(&atomisp_dev->kobj, atomisp_attribute_group);
> > +
> >
>
> You've introduced two blank lines in a row here.  (checkpatch.pl -f
> will complain).
>
noted , will fix it , and send v3
> regards,
> dan carpenter
>
> >       /* free dummy memory first */
> >       hmm_free(dummy_ptr);
> > --
> > 2.25.1
> >

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ