]> Gentwo Git Trees - linux/.git/commit
firmware: stratix10-svc: fix bug in saving controller data
authorKhairul Anuar Romli <khairul.anuar.romli@altera.com>
Sun, 2 Nov 2025 23:21:28 +0000 (07:21 +0800)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 3 Nov 2025 12:24:19 +0000 (06:24 -0600)
commitd0fcf70c680e4d1669fcb3a8632f41400b9a73c2
tree122ac265647504c99dda9870c2221f13b679b28a
parent6146a0f1dfae5d37442a9ddcba012add260bceb0
firmware: stratix10-svc: fix bug in saving controller data

Fix the incorrect usage of platform_set_drvdata and dev_set_drvdata. They
both are of the same data and overrides each other. This resulted in the
rmmod of the svc driver to fail and throw a kernel panic for kthread_stop
and fifo free.

Fixes: b5dc75c915cd ("firmware: stratix10-svc: extend svc to support new RSU features")
Cc: stable@vger.kernel.org # 6.6+
Signed-off-by: Ang Tien Sung <tiensung.ang@altera.com>
Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
drivers/firmware/stratix10-svc.c