All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: Oded Gabbay <oded.gabbay@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [bug report] habanalabs: add gaudi asic-dependent code
Date: Mon, 18 May 2026 11:39:26 +0300	[thread overview]
Message-ID: <agrQPi0hUPM3TOlV@stanley.mountain> (raw)
In-Reply-To: <agrP8NT6DN8iX7sV@stanley.mountain>

On Mon, May 18, 2026 at 11:38:08AM +0300, Dan Carpenter wrote:
> Hello Oded Gabbay,
> 
> Commit ac0ae6a96aa5 ("habanalabs: add gaudi asic-dependent code")
> from May 11, 2020 (linux-next), leads to the following Smatch static
> checker warning:
> 
> 	drivers/accel/habanalabs/gaudi/gaudi.c:1036 _gaudi_init_tpc_mem()
> 	error: dereferencing freed memory 'cb->buf' (line 1035)

Actually there are four instances of this:

drivers/accel/habanalabs/gaudi/gaudi.c:1036 _gaudi_init_tpc_mem() error: dereferencing freed memory 'cb->buf' (line 1035)
drivers/accel/habanalabs/gaudi/gaudi.c:5654 gaudi_memset_device_memory() error: dereferencing freed memory 'cb->buf' (line 5653)
drivers/accel/habanalabs/gaudi/gaudi.c:5717 gaudi_memset_registers() error: dereferencing freed memory 'cb->buf' (line 5716)
drivers/accel/habanalabs/goya/goya.c:4820 goya_memset_device_memory() error: dereferencing freed memory 'cb->buf' (line 4819)

regards,
dan carpenter


  reply	other threads:[~2026-05-18  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18  8:38 [bug report] habanalabs: add gaudi asic-dependent code Dan Carpenter
2026-05-18  8:39 ` Dan Carpenter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-26  9:30 Dan Carpenter
2022-06-05  9:27 ` Oded Gabbay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=agrQPi0hUPM3TOlV@stanley.mountain \
    --to=error27@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=oded.gabbay@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.