mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Locking error in bflsc_send_work
This commit is contained in:
parent
cbe13be85c
commit
a84e424b73
@ -1350,8 +1350,9 @@ static bool bflsc_send_work(struct cgpu_info *bflsc, int dev, struct work *work)
|
|||||||
data.endOfBlock = BFLSC_EOB;
|
data.endOfBlock = BFLSC_EOB;
|
||||||
|
|
||||||
try = 0;
|
try = 0;
|
||||||
re_send:
|
|
||||||
mutex_lock(&(bflsc->device_mutex));
|
mutex_lock(&(bflsc->device_mutex));
|
||||||
|
re_send:
|
||||||
err = write_to_dev(bflsc, dev, BFLSC_QJOB, BFLSC_QJOB_LEN, &amount, C_REQUESTQUEJOB);
|
err = write_to_dev(bflsc, dev, BFLSC_QJOB, BFLSC_QJOB_LEN, &amount, C_REQUESTQUEJOB);
|
||||||
if (err < 0 || amount != BFLSC_QJOB_LEN) {
|
if (err < 0 || amount != BFLSC_QJOB_LEN) {
|
||||||
mutex_unlock(&(bflsc->device_mutex));
|
mutex_unlock(&(bflsc->device_mutex));
|
||||||
|
Loading…
Reference in New Issue
Block a user